Taragolis commented on code in PR #38504:
URL: https://github.com/apache/airflow/pull/38504#discussion_r1540211339
##########
tests/conftest.py:
##########
@@ -1185,6 +1185,16 @@ def cleanup_providers_manager():
ProvidersManager()._cleanup()
[email protected]
+def check_deprecations():
+ from airflow.exceptions import AirflowProviderDeprecationWarning,
RemovedInAirflow3Warning
+
+ with warnings.catch_warnings():
+ warnings.simplefilter("error", AirflowProviderDeprecationWarning)
+ warnings.simplefilter("error", RemovedInAirflow3Warning)
+ yield
Review Comment:
Let's have a look.
I've added this fixture which could be enabled on module level by
`pytestmark = pytest.mark.usefixtures("check_deprecations")`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]