potiuk commented on code in PR #44755:
URL: https://github.com/apache/airflow/pull/44755#discussion_r1875612731


##########
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:
   AH... Maybe simply you have no `uv sync` or `pip install -e ./providers` 
installed in your venv - and that's where all the problems are from ?  In such 
case, providers will not be available in sources of airlfow and Providers 
manager will not read their configuration.
   
   I guess that might be the problem you had. Seems that those tests heavily 
depend on whther you are using workspace (or installing both sub-projects in 
the venv as equivalent of workspace) or not.



-- 
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]

Reply via email to