This is an automated email from the ASF dual-hosted git repository.

ash pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 803cba597ff Remove deprecation warning in common test utils (#58152)
803cba597ff is described below

commit 803cba597ff869442653ffd069a2f74328fb97fe
Author: Ash Berlin-Taylor <[email protected]>
AuthorDate: Mon Nov 10 18:14:17 2025 +0000

    Remove deprecation warning in common test utils (#58152)
    
    * 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
---
 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 7e0b68e71a6..651e486bc04 100644
--- a/devel-common/src/tests_common/pytest_plugin.py
+++ b/devel-common/src/tests_common/pytest_plugin.py
@@ -1825,8 +1825,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 f95ea4beb0d..9e21004385d 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(

Reply via email to