Gateway tests

This commit is contained in:
Cyber MacGeddon 2025-07-12 17:17:25 +01:00
parent b0589adbee
commit 5acfd74e3b

View file

@ -75,7 +75,7 @@ class TestMux:
async def test_mux_receive_valid_message(self):
"""Test Mux receive method with valid message"""
mock_dispatcher_manager = MagicMock()
mock_ws = MagicMock()
mock_ws = AsyncMock()
mock_running = MagicMock()
mux = Mux(
@ -88,7 +88,8 @@ class TestMux:
mock_msg = MagicMock()
mock_msg.json.return_value = {
"request": {"type": "test"},
"id": "test-id-123"
"id": "test-id-123",
"service": "test-service"
}
# Call receive