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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -