Skip to content

Commit

Permalink
Impossible to write these tests anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
blast-hardcheese committed Nov 6, 2024
1 parent fe7cd4c commit 6f1e538
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions tests/test_communication.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,6 @@ async def upload_data() -> AsyncGenerator[str, None]:
assert response == "Uploaded: Initial Data" + (", Data" * iterations)


@pytest.mark.asyncio
async def test_upload_empty(client: Client) -> None:
async def upload_data(enabled: bool = False) -> AsyncGenerator[str, None]:
if enabled:
yield "unreachable"

response = await client.send_upload(
"test_service",
"upload_method",
None,
upload_data(),
None,
serialize_request,
deserialize_response,
deserialize_response,
) # type: ignore
assert response == "Uploaded: "


@pytest.mark.asyncio
async def test_subscription_method(client: Client) -> None:
async for response in await client.send_subscription(
Expand Down Expand Up @@ -123,28 +104,6 @@ async def stream_data() -> AsyncGenerator[str, None]:
]


@pytest.mark.asyncio
async def test_stream_empty(client: Client) -> None:
async def stream_data(enabled: bool = False) -> AsyncGenerator[str, None]:
if enabled:
yield "unreachable"

responses = []
async for response in await client.send_stream(
"test_service",
"stream_method",
None,
stream_data(),
None,
serialize_request,
deserialize_response,
deserialize_error,
):
responses.append(response)

assert responses == []


@pytest.mark.asyncio
async def test_multiplexing(client: Client) -> None:
async def upload_data() -> AsyncGenerator[str, None]:
Expand Down

0 comments on commit 6f1e538

Please sign in to comment.