This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-1-test by this push:
new 3f80b65d3ea [v3-1-test] Remove deprecation warning in common test
utils (#58152) (#58166)
3f80b65d3ea is described below
commit 3f80b65d3eaf0cdd2026bf5430d598d65e291b0b
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Nov 10 19:18:47 2025 +0100
[v3-1-test] Remove deprecation warning in common test utils (#58152)
(#58166)
* Remove pytest deprecation warning in common test utils
> pytest.PytestRemovedIn9Warning: Marks applied to fixtures have no effect
* Remove mark-on-fixture in AWS test too
Every use of that fixture already had this mark, so we remove it
(cherry picked from commit 803cba597ff869442653ffd069a2f74328fb97fe)
Co-authored-by: Ash Berlin-Taylor <[email protected]>
---
devel-common/src/tests_common/pytest_plugin.py | 4 ++--
providers/amazon/tests/unit/amazon/aws/operators/test_appflow.py | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/devel-common/src/tests_common/pytest_plugin.py
b/devel-common/src/tests_common/pytest_plugin.py
index a50dba08921..f8a6d109af9 100644
--- a/devel-common/src/tests_common/pytest_plugin.py
+++ b/devel-common/src/tests_common/pytest_plugin.py
@@ -1791,8 +1791,8 @@ def refuse_to_run_test_from_wrongly_named_files(request:
pytest.FixtureRequest):
@pytest.fixture(autouse=True, scope="session")
[email protected]("_ensure_configured_logging")
-def initialize_providers_manager():
+def initialize_providers_manager(request: pytest.FixtureRequest):
+ request.getfixturevalue("_ensure_configured_logging")
if importlib.util.find_spec("airflow") is None:
# If airflow is not installed, we should not initialize providers
manager
return
diff --git a/providers/amazon/tests/unit/amazon/aws/operators/test_appflow.py
b/providers/amazon/tests/unit/amazon/aws/operators/test_appflow.py
index 1f2b188997f..ce8b2601dc6 100644
--- a/providers/amazon/tests/unit/amazon/aws/operators/test_appflow.py
+++ b/providers/amazon/tests/unit/amazon/aws/operators/test_appflow.py
@@ -56,7 +56,6 @@ DUMP_COMMON_ARGS = {
AppflowBaseOperator.UPDATE_PROPAGATION_TIME = 0 # avoid wait
[email protected]_test
@pytest.fixture
def ctx(create_task_instance, session):
ti = create_task_instance(