cfg: Eliminate the need for 'root' directory in configuration

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2020-06-28 21:01:31 -04:00
1 parent 40663b7b5a
commit 62fc33e12c
8 files changed
+41 -52

No files matched your search

+2 -2
View File
@@ -53,9 +53,9 @@ def fixture_load_cfg():
root_dir = pathlib.Path(__file__).resolve().parent
test_data_dir = root_dir / 'plinth' / 'tests' / 'data'
cfg_file = test_data_dir / 'etc' / 'plinth' / 'plinth.config'
cfg.read_file(str(cfg_file), str(root_dir))
cfg.read_file(str(cfg_file))
yield cfg
cfg.read_file(str(cfg_file), str(root_dir))
cfg.read_file(str(cfg_file))
@pytest.fixture(name='develop_mode')