aboutsummaryrefslogtreecommitdiff
path: root/tests/test_core_init.py
diff options
context:
space:
mode:
authorBrianna Rainey2026-01-29 16:30:43 -0500
committerBrianna Rainey2026-01-29 16:30:43 -0500
commitb283aa418a1c0016a63a328fec6259dfe110cefe (patch)
treebfdc6f4700df9ffcf16f731a505217a153186aff /tests/test_core_init.py
parent71a22c6a121d1294a05ef35020c525fa70cae2fd (diff)
fix `settings.ini` not located in correct path
Diffstat (limited to 'tests/test_core_init.py')
-rw-r--r--tests/test_core_init.py13
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")