blob: e1f2dbb5421284fd97d17a9e172befd04ca6e9c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
import os
from avp.core import Core
from . import getTestDataPath, initCore
def test_component_names():
initCore()
core = Core()
assert core.compNames == [
"Classic Visualizer",
"Color",
"Conway's Game of Life",
"Image",
"Sound",
"Spectrum",
"Title Text",
"Video",
"Waveform",
]
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")
|