move INI file locations

pull/5/head
Max Erenberg 2 years ago
parent 3ecf43731f
commit 9e4d564a33
  1. 0
      ceo_common/test/__init__.py
  2. 2
      ceod/api/app_factory.py
  3. 0
      tests_common/ceod_dev.ini
  4. 2
      tests_common/ceod_test_local.ini
  5. 2
      tests_common/fixtures.py

@ -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

@ -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]

@ -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)

Loading…
Cancel
Save