refactor(python-sdk): accept options when resuming sessions
This commit is contained in:
1 parent
145d2d8a49
commit
78e5ecce15
10 files changed
+33
-25
No files matched your search
@@ -2010,7 +2010,7 @@ def smoke_sdk_restart_snapshot(base_url: str, executable: Path, update_snapshots
|
||||
)
|
||||
before_resume = logs[RESTART_FIRST_SESSION_ID]
|
||||
with connect("resumed-smoke-model") as harness:
|
||||
session = harness.resume_session(RESTART_FIRST_SESSION_ID, permission_mode="read-only")
|
||||
session = harness.resume_session(RESTART_FIRST_SESSION_ID, {"permission_mode": "read-only"})
|
||||
if session.id != RESTART_FIRST_SESSION_ID:
|
||||
raise AssertionError(f"resume changed the saved identity: {session.id}")
|
||||
if len(MockModelHandler.requests) != first_request + 2:
|
||||
|
||||
Reference in new issue
Block a user