Without moving any code around (I realise I could refactor but for various reasons that is inconvenient), is there a way to call py.test whilst ignoring conftest.py?
I'd thought:
py.test -p no:pytestconfig
might work, but it seems like it doesn't.
Use:
py.test --noconftest
According to py.test --help:
--noconftest Don't load any conftest.py files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With