python - py.test: how to forbid to load conftest files in upper directories -


i have structure this:

conftest.py dir/conftest.py dir/test_my.py 

when change directory dir , run py.test test_my.py, tests start configuration, declared in outer conftest.py (which out of dir). there way change pytest behaviour: load conftest-file local directory?

you can set confcutdir option specify pytest should stop searching conftest.py files.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -