Skip to content

Commit 4a4ab55

Browse files
committed
Remove AsyncMock
1 parent a2dd43e commit 4a4ab55

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

tests/applications/test_turn_channels_api.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from contextlib import asynccontextmanager
66
from hashlib import sha256
77
from http import HTTPStatus
8-
from unittest.mock import AsyncMock
98
from uuid import UUID
109

1110
import httpx
@@ -848,16 +847,13 @@ async def mock_success_get_data(as_text=False):
848847
) as ctx:
849848
await ctx.push()
850849
try:
851-
mock_publish = AsyncMock()
852850
monkeypatch.setattr(request, "get_data", mock_success_get_data)
853-
monkeypatch.setattr(worker.connector, "publish_outbound", mock_publish)
854851

855852
# This should not raise an exception
856853
response = await worker.http_send_message()
857854
assert "messages" in response
858855
assert len(response["messages"]) == 1
859856
assert "id" in response["messages"][0]
860-
mock_publish.assert_called_once()
861857
finally:
862858
await ctx.pop()
863859
monkeypatch.undo()

0 commit comments

Comments
 (0)