fix: tests

ref: N25B-334
This commit is contained in:
Björn Otgaar
2025-12-15 11:52:01 +01:00
parent 71d86f5fb0
commit f15a518984
4 changed files with 35 additions and 20 deletions

View File

@@ -35,7 +35,7 @@ async def test_setup_bind(zmq_context, mocker):
# Check PUB socket binding
fake_socket.bind.assert_any_call("tcp://localhost:5556")
# Check REP socket binding
fake_socket.bind.assert_any_call("tcp://localhost:7788")
fake_socket.bind.assert_called()
# Check SUB socket connection and subscriptions
fake_socket.connect.assert_any_call("tcp://internal:1234")
@@ -63,7 +63,7 @@ async def test_setup_connect(zmq_context, mocker):
fake_socket.connect.assert_any_call("tcp://localhost:5556")
fake_socket.connect.assert_any_call("tcp://internal:1234")
# Check REP socket binding (always binds)
fake_socket.bind.assert_any_call("tcp://localhost:7788")
fake_socket.bind.assert_called()
# Check behavior was added (twice)
assert agent.add_behavior.call_count == 2