From 39e07cb54f4c2b11308e2e808069718bc181cc74 Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Mon, 13 Dec 2021 17:09:56 +0800 Subject: [PATCH] Only catch context deprecations in airflow proper --- pytest.ini | 1 - tests/conftest.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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")