diff options
| author | Brianna Rainey | 2026-01-29 16:30:43 -0500 |
|---|---|---|
| committer | Brianna Rainey | 2026-01-29 16:30:43 -0500 |
| commit | b283aa418a1c0016a63a328fec6259dfe110cefe (patch) | |
| tree | bfdc6f4700df9ffcf16f731a505217a153186aff /tests/test_core_init.py | |
| parent | 71a22c6a121d1294a05ef35020c525fa70cae2fd (diff) | |
fix `settings.ini` not located in correct path
Diffstat (limited to 'tests/test_core_init.py')
| -rw-r--r-- | tests/test_core_init.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_core_init.py b/tests/test_core_init.py index 16606fb..e1f2dbb 100644 --- a/tests/test_core_init.py +++ b/tests/test_core_init.py @@ -1,7 +1,10 @@ +import os from avp.core import Core +from . import getTestDataPath, initCore def test_component_names(): + initCore() core = Core() assert core.compNames == [ "Classic Visualizer", @@ -17,5 +20,15 @@ def test_component_names(): def test_moduleindex(): + initCore() core = Core() assert core.moduleIndexFor("Classic Visualizer") == 0 + + +def test_configPath_default(): + configPath = Core.getConfigPath(None) + assert os.path.basename(configPath) == "audio-visualizer" + + +def test_configPath_nonstandard(): + assert Core.getConfigPath(getTestDataPath("config")) == getTestDataPath("config") |
