forked from public/pyceo
move INI file locations
This commit is contained in:
parent
3ecf43731f
commit
9e4d564a33
|
@ -19,7 +19,7 @@ def create_app(flask_config={}):
|
||||||
app.config.from_mapping(flask_config)
|
app.config.from_mapping(flask_config)
|
||||||
|
|
||||||
if app.config.get('ENV') == 'development' and 'CEOD_CONFIG' not in os.environ:
|
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__()
|
config_file = p.__fspath__()
|
||||||
else:
|
else:
|
||||||
config_file = None
|
config_file = None
|
||||||
|
|
|
@ -33,7 +33,7 @@ home = /tmp/test_users
|
||||||
skel = /users/skel
|
skel = /users/skel
|
||||||
|
|
||||||
[mail]
|
[mail]
|
||||||
smtp_url = smtp://mail.csclub.internal
|
smtp_url = smtp://localhost:8025
|
||||||
smtp_starttls = false
|
smtp_starttls = false
|
||||||
|
|
||||||
[mailman3]
|
[mailman3]
|
|
@ -16,7 +16,7 @@ from ceod.model import KerberosService, LDAPService, FileService, User, \
|
||||||
|
|
||||||
@pytest.fixture(autouse=True, scope='session')
|
@pytest.fixture(autouse=True, scope='session')
|
||||||
def cfg():
|
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__()
|
config_file = p.__fspath__()
|
||||||
_cfg = Config(config_file)
|
_cfg = Config(config_file)
|
||||||
component.provideUtility(_cfg, IConfig)
|
component.provideUtility(_cfg, IConfig)
|
||||||
|
|
Loading…
Reference in New Issue