test(p1-2): Integrationstest — PresenceEngine übergibt plugin_state_path an DetectionTimer
This commit is contained in:
@@ -2152,3 +2152,25 @@ class TestDetectionSourceTelemetry:
|
|||||||
mock_run.assert_not_called()
|
mock_run.assert_not_called()
|
||||||
finally:
|
finally:
|
||||||
os.unlink(gw_path)
|
os.unlink(gw_path)
|
||||||
|
|
||||||
|
|
||||||
|
# ═══════════════════════════════════════════════════════════════════════════
|
||||||
|
# P1-2: Integration — PresenceEngine übergibt plugin_state_path an DetectionTimer
|
||||||
|
# ═══════════════════════════════════════════════════════════════════════════
|
||||||
|
|
||||||
|
|
||||||
|
class TestPresenceEnginePluginStateIntegration:
|
||||||
|
"""P1-2: PresenceEngine → DetectionTimer plugin_state_path Integration."""
|
||||||
|
|
||||||
|
def test_detection_timer_has_plugin_state_path(self):
|
||||||
|
"""DetectionTimer bekommt plugin_state_path von PresenceEngine."""
|
||||||
|
from plugin.archivar.presence_engine import PresenceEngine
|
||||||
|
|
||||||
|
mock_rest = MagicMock()
|
||||||
|
mock_rest.auth_token = "token"
|
||||||
|
mock_rest.user_id = "user123"
|
||||||
|
|
||||||
|
engine = PresenceEngine(rest=mock_rest, enabled=True)
|
||||||
|
assert engine._detection_timer._plugin_state_path is not None
|
||||||
|
assert "plugin_state" in engine._detection_timer._plugin_state_path
|
||||||
|
assert "hermes_rocket_plugin.json" in engine._detection_timer._plugin_state_path
|
||||||
|
|||||||
Reference in New Issue
Block a user