open_workshop/open_workshop_mqtt/tests
matthias.lotz 90e3422e8b fix: Repariere alle Unit Tests - SessionDetector jetzt produktionsreif
-  Alle 26 Tests grün (0 failed, 0 errors)
- Phase 2 ist damit 100% fertig!

Tests repariert:
- test_session_detector.py: Alle 7 Tests an env-passing angepasst
  - SessionDetector(device.id, device.name) statt SessionDetector(device)
  - process_power_event(env, power, ts) statt process_power_event(power, ts)
- test_mqtt_mocked.py: Alle 4 Service-Tests korrigiert
  - start_connection_with_env(connection_id, env) Signatur
  - stop_connection(connection_id) Parameter hinzugefügt
  - IotBridgeService direkt instanziiert
  - device.topic_pattern statt nicht-existierendem device_id

Verbesserungen:
- run-tests.sh: Klare Ausgabe mit ✓✓✓ ALL TESTS PASSED ✓✓✓
- run-tests.sh: Parsed Odoo Test-Output korrekt
- run-tests.sh: Exit Code (0=success, 1=failure)

Test-Coverage:
- SessionDetector State Machine vollständig getestet
- Alle 5 States: IDLE/STARTING/STANDBY/WORKING/STOPPING
- Debounce Logic: Start + Stop Timer
- Duration Tracking: Standby/Working Zeiten
- Timeout Detection: 20s Message Timeout
- State Recovery: Nach Restart

SessionDetector ist produktionsreif!
2026-01-30 16:46:35 +01:00
..
__init__.py fix: MQTT topic matching + UI button fixes 2026-01-28 22:08:59 +01:00
common.py WIP: MQTT Tests - Mocked approach created but needs better testing strategy 2026-01-25 10:15:52 +01:00
test_device_status.py fix: MQTT topic matching + UI button fixes 2026-01-28 22:08:59 +01:00
test_mqtt_connection.py fix: MQTT topic matching + UI button fixes 2026-01-28 22:08:59 +01:00
test_mqtt_mocked.py fix: Repariere alle Unit Tests - SessionDetector jetzt produktionsreif 2026-01-30 16:46:35 +01:00
test_session_detection.py fix: MQTT topic matching + UI button fixes 2026-01-28 22:08:59 +01:00
test_session_detector.py fix: Repariere alle Unit Tests - SessionDetector jetzt produktionsreif 2026-01-30 16:46:35 +01:00
test_start_stop.py fix: MQTT topic matching + UI button fixes 2026-01-28 22:08:59 +01:00
test_topic_matching.py fix: MQTT topic matching + UI button fixes 2026-01-28 22:08:59 +01:00