Skip to content

Commit dd08f13

Browse files
committed
Always load base config in tests
1 parent 8b617e0 commit dd08f13

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

cesium_app/tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424

2525
print('Loading test configuration from _test_config.yaml')
26-
basedir = pathlib.Path(os.path.dirname(__file__))
27-
cfg = Config([(basedir/'../../_test_config.yaml').absolute()])
26+
basedir = pathlib.Path(os.path.dirname(__file__))/'../..'
27+
cfg = Config([basedir/'config.yaml.example', basedir/'_test_config.yaml'])
2828
set_server_url(cfg['server:url'])
2929
print('Setting test database to:', cfg['database'])
3030
models.init_db(**cfg['database'])

tools/test_frontend.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ def delete_test_yaml():
6868
from cesium_app.models import init_db
6969
from cesium_app.app_server import load_config
7070
basedir = pathlib.Path(os.path.dirname(__file__))/'..'
71-
cfg = load_config([basedir/'config.yaml.example',
72-
basedir/TEST_CONFIG])
71+
cfg = load_config([basedir/'config.yaml.example', basedir/TEST_CONFIG])
7372
init_db(**cfg['database'])
7473

7574
clear_tables()

0 commit comments

Comments
 (0)