Skip to content

Commit 30147cc

Browse files
committed
Format Python lifecycle tests
Apply ruff formatting to the new Python lifecycle regression tests so CI format checks pass. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ec0b3bf commit 30147cc

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

python/test_client.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,7 @@ def failing_handler(session):
231231
raise RuntimeError("boom")
232232

233233
with pytest.raises(RuntimeError, match="boom"):
234-
await client.resume_session(
235-
"session-1", create_session_fs_handler=failing_handler
236-
)
234+
await client.resume_session("session-1", create_session_fs_handler=failing_handler)
237235

238236
session = captured["session"]
239237
assert session.session_id not in client._sessions
@@ -302,9 +300,7 @@ def create_provider(session):
302300
return object()
303301

304302
with pytest.raises(RuntimeError, match="already active"):
305-
await client.resume_session(
306-
"session-1", create_session_fs_handler=create_provider
307-
)
303+
await client.resume_session("session-1", create_session_fs_handler=create_provider)
308304

309305
session = captured["session"]
310306
assert client._sessions["session-1"] is existing

0 commit comments

Comments
 (0)