cic-stack/apps/cic-cache/tests/fixtures_config.py

21 lines
459 B
Python
Raw Normal View History

2021-02-18 06:04:30 +01:00
# standard imports
import os
import logging
# external imports
2021-02-18 06:04:30 +01:00
import pytest
import confini
script_dir = os.path.dirname(os.path.realpath(__file__))
root_dir = os.path.dirname(script_dir)
logg = logging.getLogger(__file__)
@pytest.fixture(scope='session')
def load_config():
config_dir = os.path.join(root_dir, 'config/test')
2021-02-18 06:04:30 +01:00
conf = confini.Config(config_dir, 'CICTEST')
conf.process()
logg.debug('config {}'.format(conf))
return conf