Skip to content

Commit d2d55a1

Browse files
committed
Tidy up a test warning
1 parent 5abd858 commit d2d55a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_base_async.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ async def test_terminate(server: TestServer):
3333

3434
async def test_send_error(server: TestServer):
3535
context = AsyncMock()
36+
context.has_operation = mock.Mock()
3637
await server.send_error(connection_context=context, op_id=1, error="test error")
3738
context.send.assert_called_with(
3839
{"id": 1, "type": "error", "payload": {"message": "test error"}}

0 commit comments

Comments
 (0)