mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-21 11:11:03 +02:00
Gateway tests
This commit is contained in:
parent
b0589adbee
commit
5acfd74e3b
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue