Splitting a conftest.py file into several smaller conftest-like parts

You can put your stuff in other modules and reference them using a pytest_plugins variable in your conftest.py:

pytest_plugins = ['module1', 'module2']

This will also work if your conftest.py has hooks on them.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)