Skip to content

Commit 2dc8eff

Browse files
Impossible to write these tests anymore
1 parent b943f13 commit 2dc8eff

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

tests/test_communication.py

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -63,25 +63,6 @@ async def upload_data() -> AsyncGenerator[str, None]:
6363
assert response == "Uploaded: Initial Data" + (", Data" * iterations)
6464

6565

66-
@pytest.mark.asyncio
67-
async def test_upload_empty(client: Client) -> None:
68-
async def upload_data(enabled: bool = False) -> AsyncGenerator[str, None]:
69-
if enabled:
70-
yield "unreachable"
71-
72-
response = await client.send_upload(
73-
"test_service",
74-
"upload_method",
75-
None,
76-
upload_data(),
77-
None,
78-
serialize_request,
79-
deserialize_response,
80-
deserialize_response,
81-
) # type: ignore
82-
assert response == "Uploaded: "
83-
84-
8566
@pytest.mark.asyncio
8667
async def test_subscription_method(client: Client) -> None:
8768
async for response in await client.send_subscription(
@@ -123,28 +104,6 @@ async def stream_data() -> AsyncGenerator[str, None]:
123104
]
124105

125106

126-
@pytest.mark.asyncio
127-
async def test_stream_empty(client: Client) -> None:
128-
async def stream_data(enabled: bool = False) -> AsyncGenerator[str, None]:
129-
if enabled:
130-
yield "unreachable"
131-
132-
responses = []
133-
async for response in await client.send_stream(
134-
"test_service",
135-
"stream_method",
136-
None,
137-
stream_data(),
138-
None,
139-
serialize_request,
140-
deserialize_response,
141-
deserialize_error,
142-
):
143-
responses.append(response)
144-
145-
assert responses == []
146-
147-
148107
@pytest.mark.asyncio
149108
async def test_multiplexing(client: Client) -> None:
150109
async def upload_data() -> AsyncGenerator[str, None]:

0 commit comments

Comments
 (0)