-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Remove duplicate 'mock_supervisor_comms' pytest fixture definitions #49457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove duplicate 'mock_supervisor_comms' pytest fixture definitions #49457
Conversation
amoghrajesh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have a couple more occurrences of this, in:
airflow-core/tests/conftest.pyproviders/openlineage/tests/unit/openlineage/plugins/test_listener.py(create a seperate PR for this please)
|
@amoghrajesh These are the locations where
I had initially retained it in 1, so it can be removed from 2 and 3. |
If we have it in the pytest_plugin.py, it means it can be accessed from anywhere in the codebase. So you should be able to remove every other occurence. For the providers, make a different PR, rest can be in this one |
amoghrajesh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM +1
Removing the
mock_supervisor_commspytest fixure from -airflow-core/tests/unit/hooks/test_base.py
airflow-core/tests/unit/models/test_taskinstance.py
airflow-core/tests/conftest.py
as it is already defined in devel-common/src/tests_common/pytest_plugin.py
Created #49520 to delete the definition from providers/openlineage/tests/unit/openlineage/plugins/test_listener.py