Before pytest actually collects and executes my module , I need to run an external start-script from another module to do some patching, i would like to edit the pytest source. Where exactly in pytest source code should I edit to achieve this? I mean my start-up script must run by default before all other activities. Any pointers will be appreciated.
Add conftest.py to your project home folder and your startup lay in pytest_sessionstart()
def pytest_sessionstart(session):
pass
ref. hook starting
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