Skip to content

Commit a3ab6c2

Browse files
Apply ruff formatting
1 parent 97b630a commit a3ab6c2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/server/test_streamable_http_manager.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ async def mock_receive():
140140
# Give other tasks a chance to run. This is important for the finally block.
141141
await anyio.sleep(0.01)
142142

143-
assert (
144-
session_id not in manager._server_instances
145-
), "Session ID should be removed from _server_instances after graceful exit"
143+
assert session_id not in manager._server_instances, (
144+
"Session ID should be removed from _server_instances after graceful exit"
145+
)
146146
assert not manager._server_instances, "No sessions should be tracked after the only session exits gracefully"
147147

148148

@@ -193,7 +193,7 @@ async def mock_receive():
193193
# Give other tasks a chance to run to ensure the finally block executes
194194
await anyio.sleep(0.01)
195195

196-
assert (
197-
session_id not in manager._server_instances
198-
), "Session ID should be removed from _server_instances after an exception"
196+
assert session_id not in manager._server_instances, (
197+
"Session ID should be removed from _server_instances after an exception"
198+
)
199199
assert not manager._server_instances, "No sessions should be tracked after the only session crashes"

0 commit comments

Comments
 (0)