We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84372b7 commit 6b03aaeCopy full SHA for 6b03aae
python/test_client.py
@@ -21,6 +21,16 @@ async def test_create_session_raises_without_permission_handler(self):
21
finally:
22
await client.force_stop()
23
24
+ @pytest.mark.asyncio
25
+ async def test_create_session_raises_with_none_permission_handler(self):
26
+ client = CopilotClient({"cli_path": CLI_PATH})
27
+ await client.start()
28
+ try:
29
+ with pytest.raises(ValueError, match="on_permission_request handler is required"):
30
+ await client.create_session(None) # type: ignore[arg-type]
31
+ finally:
32
+ await client.force_stop()
33
+
34
@pytest.mark.asyncio
35
async def test_resume_session_raises_without_permission_handler(self):
36
client = CopilotClient({"cli_path": CLI_PATH})
0 commit comments