You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove side-effects in models/tests_dags affecting plugin manager tests (#52258)
I guess CI must not run this exact combination of tests together, but prior to
this change if you ran `pytest
airflow-core/tests/unit/models/test_dag.py::TestDag::test_bulk_write_to_db_assets
airflow-core/tests/unit/plugins/test_plugins_manager.py::TestPluginsManager::test_registering_plugin_listeners`
you would get a test failure.
The issue was caused by having two fixtures of the same name, a module level
`clean_plugins`, and a class level one. This is by design in Pytest and is how
to override plugins at different scopes.
This also explains why we had `listener_manager.clear()` in a finally block
when it should have been handled by the fixture
0 commit comments