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()
 
 
+@pytest.fixture
+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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to