diff options
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") |
