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


##########
tests/providers/openlineage/plugins/test_openlineage.py:
##########
@@ -131,7 +131,7 @@ def teardown_method(self):
             ),
         ],
     )
-    def test_plugin_disablements(self, mocks, expected):
+    def test_plugin_disablements(self, mocks, expected, 
require_running_tests_from_sources):

Review Comment:
   OK @mobuchowski  @kacpermuda . I know **why** it happens. 
   
   I do not yet know the solution, but the problem is that when airflow is 
installed from the package, plugins get initialized when `db_init()` is run 
before tests start and they are not re-initialized later so the `is_disabled` 
method is not called in the tests at all - they all use hooks that get 
registered during plugin initialization when `db init` is called. Now ... We 
should likely find a way to unload plugins in this case.



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to