move INI file locations

This commit is contained in:
Max Erenberg 2021-08-04 17:15:06 +00:00
parent 3ecf43731f
commit 9e4d564a33
5 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ def create_app(flask_config={}):
app.config.from_mapping(flask_config)
if app.config.get('ENV') == 'development' and 'CEOD_CONFIG' not in os.environ:
with importlib.resources.path('ceo_common.test', 'ceod_dev.ini') as p:
with importlib.resources.path('tests_common', 'ceod_dev.ini') as p:
config_file = p.__fspath__()
else:
config_file = None

View File

@ -33,7 +33,7 @@ home = /tmp/test_users
skel = /users/skel
[mail]
smtp_url = smtp://mail.csclub.internal
smtp_url = smtp://localhost:8025
smtp_starttls = false
[mailman3]

View File

@ -16,7 +16,7 @@ from ceod.model import KerberosService, LDAPService, FileService, User, \
@pytest.fixture(autouse=True, scope='session')
def cfg():
with importlib.resources.path('ceo_common.test', 'ceod_test_local.ini') as p:
with importlib.resources.path('tests_common', 'ceod_test_local.ini') as p:
config_file = p.__fspath__()
_cfg = Config(config_file)
component.provideUtility(_cfg, IConfig)