mirror of
https://github.com/anthropics/claude-code-sdk-python.git
synced 2025-12-23 09:19:52 +00:00
Ignore flake error when mocking async function
🏠 Remote-Dev: homespace
This commit is contained in:
parent
8934ae09ea
commit
4dc557b578
1 changed files with 2 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ def create_mock_transport(with_init_response: bool = True) -> AsyncMock:
|
|||
|
||||
written_messages: list[str] = []
|
||||
|
||||
async def mock_write(data: str) -> None:
|
||||
async def mock_write(data: str) -> None: # noqa: ASYNC124
|
||||
written_messages.append(data)
|
||||
|
||||
mock_transport.write.side_effect = mock_write
|
||||
|
|
@ -353,6 +353,7 @@ class TestTrioBackend:
|
|||
|
||||
await query.start()
|
||||
assert query._tg is not None
|
||||
assert query._owner_started_event is not None
|
||||
assert query._owner_started_event.is_set()
|
||||
|
||||
await query.close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue