blob: 30477ef276885ea562e0808981995e236b663e8a (
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
|
import os
from avp.core import Core
from . import getTestDataPath, settings
def test_component_names(settings):
core = Core()
assert core.compNames == [
"Classic Visualizer",
"Color",
"Conway's Game of Life",
"Image",
"Sound",
"Spectrum",
"Title Text",
"Video",
"Waveform",
]
def test_moduleindex(settings):
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")
|