File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 2323
2424
2525print ('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' ])
2828set_server_url (cfg ['server:url' ])
2929print ('Setting test database to:' , cfg ['database' ])
3030models .init_db (** cfg ['database' ])
Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments