Taragolis commented on code in PR #38504: URL: https://github.com/apache/airflow/pull/38504#discussion_r1540634682
########## 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: Change concept from `pytestmark` on module scope to exclusion file on module ./ class / method / function scope -- 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