Add Pico dashboard main entrypoint
This commit is contained in:
1 parent
95b27b223e
commit
10c5b399ba
2 files changed
+70
No files matched your search
@@ -817,3 +817,21 @@ def test_pico_dashboard_app_tick_updates_alarms_and_buzzer():
|
||||
assert "fridge_zone_1_high" in app.alarms
|
||||
assert buzzer.enabled is True
|
||||
assert display.commands
|
||||
|
||||
|
||||
def test_pico_main_builds_app():
|
||||
import main
|
||||
|
||||
app = main.build_app()
|
||||
|
||||
assert app.state is not None
|
||||
assert app.comms is not None
|
||||
assert app.screen_manager.current_screen == "dashboard"
|
||||
|
||||
|
||||
def test_pico_main_runs_one_tick():
|
||||
import main
|
||||
|
||||
app = main.main()
|
||||
|
||||
assert app is not None
|
||||
Reference in new issue
Block a user