diff --git a/pytest.ini b/pytest.ini index 65d0ecbd9bb89..7f3075312b0a8 100644 --- a/pytest.ini +++ b/pytest.ini @@ -32,6 +32,5 @@ faulthandler_timeout = 480 log_level = INFO filterwarnings = error::pytest.PytestCollectionWarning - error::airflow.utils.context.AirflowContextDeprecationWarning markers = need_serialized_dag diff --git a/tests/conftest.py b/tests/conftest.py index d3578997ad246..e9a6b61efab4a 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -231,6 +231,7 @@ def breeze_test_helper(request): def pytest_configure(config): + config.addinivalue_line("filterwarnings", "error::airflow.utils.context.AirflowContextDeprecationWarning") config.addinivalue_line("markers", "integration(name): mark test to run with named integration") config.addinivalue_line("markers", "backend(name): mark test to run with named backend") config.addinivalue_line("markers", "system(name): mark test to run with named system")