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
Post a Comment