We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5abd858 commit d2d55a1Copy full SHA for d2d55a1
tests/test_base_async.py
@@ -33,6 +33,7 @@ async def test_terminate(server: TestServer):
33
34
async def test_send_error(server: TestServer):
35
context = AsyncMock()
36
+ context.has_operation = mock.Mock()
37
await server.send_error(connection_context=context, op_id=1, error="test error")
38
context.send.assert_called_with(
39
{"id": 1, "type": "error", "payload": {"message": "test error"}}
0 commit comments