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
Catch import_module on AST walking, compare module name with conftest and trigger error on such import.
Rationale
AFAIK (but unable to prove in pytest documentation) conftest.py file intended to store fixtures/plugins/predefinded pytest methods - raw food for pytest.
Direct import of some 'test utility functions' from conftest.py could break things in unusual way.
The text was updated successfully, but these errors were encountered:
Rule request
Description
Catch import_module on AST walking, compare module name with
conftest
and trigger error on such import.Rationale
AFAIK (but unable to prove in pytest documentation)
conftest.py
file intended to store fixtures/plugins/predefinded pytest methods - raw food for pytest.Direct import of some 'test utility functions' from
conftest.py
could break things in unusual way.The text was updated successfully, but these errors were encountered: