File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -95,3 +95,24 @@ async def run() -> None:
9595
9696 _ , payload = client .transport .calls [0 ]
9797 assert payload == {"type" : "profile" , "params" : {"persistChanges" : True }}
98+
99+
100+ def test_async_update_profile_params_rejects_conflicting_arguments ():
101+ manager = AsyncSessionManager (_AsyncClient ())
102+
103+ async def run () -> None :
104+ with pytest .raises (TypeError , match = "not both" ):
105+ await manager .update_profile_params (
106+ "session-1" ,
107+ UpdateSessionProfileParams (persist_changes = True ),
108+ persist_changes = True ,
109+ )
110+
111+ asyncio .run (run ())
112+
113+
114+ def test_sync_update_profile_params_requires_argument_or_keyword ():
115+ manager = SyncSessionManager (_SyncClient ())
116+
117+ with pytest .raises (TypeError , match = "requires either" ):
118+ manager .update_profile_params ("session-1" )
You can’t perform that action at this time.
0 commit comments