jedcunningham commented on code in PR #44755:
URL: https://github.com/apache/airflow/pull/44755#discussion_r1876820442
##########
tests/executors/test_executor_loader.py:
##########
@@ -146,6 +146,11 @@ def test_get_hybrid_executors_from_config(self,
executor_config, expected_execut
assert executors == expected_executors_list
def test_init_executors(self):
+ # We need to init provider config in order to import CeleryExecutor
+ ProvidersManager().initialize_providers_configuration()
+
+ from airflow.providers.celery.executors.celery_executor import
CeleryExecutor
+
Review Comment:
I'm pretty sure it's failing before any fixtures are even run - pytest is
still importing the test file. If I simply move the body of
`initialize_providers_manager` into the root scope of the pytest plugin things
are happy.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]