Installation

Enable the fixture explicitly in your tests or conftest.py (not required
when using setuptools entry points):

pytest_plugins=['pytest_fixture_config']

Specifying Configuration

To specify your variables you create a class somewhere in your plugin
module, and a singleton instance of the class which reads the variables
from wherever you want. In this example we read them from the shell
environment:

importosfrompytest_fixture_configimportConfigclassFixtureConfig(Config):__slots__=('log_dir','log_watcher')CONFIG=FixtureConfig(log_dir=os.getenv('LOG_DIR','/var/log'),# This has a defaultlog_watcher=os.getenv('LOG_WATCHER'),# This does not)