diff options
| author | tassaron | 2022-04-22 17:10:35 -0400 |
|---|---|---|
| committer | tassaron | 2022-04-22 17:10:35 -0400 |
| commit | a42ea1cd69fcf3f6c1b2ff79871cd00f24b95118 (patch) | |
| tree | 781fc61b053ea33bb7217ba607359b7bf120a337 /src/tests/test_core_init.py | |
| parent | 05d2ebc3c69f5a876d602004f69202c5ba8b09f7 (diff) | |
add commandline option for tests. add first tests
Diffstat (limited to 'src/tests/test_core_init.py')
| -rw-r--r-- | src/tests/test_core_init.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tests/test_core_init.py b/src/tests/test_core_init.py new file mode 100644 index 0000000..696533a --- /dev/null +++ b/src/tests/test_core_init.py @@ -0,0 +1,19 @@ +from .__init__ import core + + +def test_component_names(core): + assert core.compNames == [ + 'Classic Visualizer', + 'Color', + "Conway's Game of Life", + 'Image', + 'Sound', + 'Spectrum', + 'Title Text', + 'Video', + 'Waveform', + ] + + +def test_moduleindex(core): + assert core.moduleIndexFor("Classic Visualizer") == 0 |
