diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2021-01-03 14:59:14 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2021-01-03 14:59:14 (GMT) |
| commit | 3813eb29114d7c2fd73584c8a3a0ab89238bfe84 (patch) | |
| tree | dd899c16fcabc2330b069b52260e2009035f63e5 /wasp/boards/simulator/test_smoke.py | |
| parent | 231f3b6fdd531b1f3fcec927bc297f4c89853aec (diff) | |
manager: Enable Software by default
Enabling software by default allows us disable several other applications
by default because there is now a GUI based route to enable them.
This does require a few tweaks to the test suite and allows allows us to
remove a lot of boilerplate text from the application library document
since it is no longer relavent.
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp/boards/simulator/test_smoke.py')
| -rw-r--r-- | wasp/boards/simulator/test_smoke.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/wasp/boards/simulator/test_smoke.py b/wasp/boards/simulator/test_smoke.py index 26e4318..50636d0 100644 --- a/wasp/boards/simulator/test_smoke.py +++ b/wasp/boards/simulator/test_smoke.py @@ -1,6 +1,7 @@ import pytest import time import wasp +import apps.testapp def step(): wasp.system._tick() @@ -36,12 +37,11 @@ def test_quick_ring(system): def test_launcher_ring(system): names = [ x.NAME for x in system.launcher_ring ] - assert('Self Test' in names) assert('Settings' in names) - assert('Torch' in names) + assert('Software' in names) @pytest.mark.parametrize("name", - ('Steps', 'Timer', 'Heart', 'Self Test', 'Settings', 'Torch')) + ('Steps', 'Timer', 'Heart', 'Settings', 'Software')) def test_app(system, name): system.switch(system.apps[name]) for i in range(4): @@ -101,7 +101,7 @@ def test_selftests(system): will do something useful! For example it will run the benchmark for every one of the benchmark tests. """ - system.switch(system.apps['Self Test']) + system.switch(apps.testapp.TestApp()) system.step() start_point = system.app.test @@ -115,7 +115,7 @@ def test_selftests(system): assert(start_point == system.app.test) def test_selftest_crash(system): - system.switch(system.apps['Self Test']) + system.switch(apps.testapp.TestApp()) system.step() def select(name): |
