Add Pico dashboard main entrypoint
This commit is contained in:
@@ -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