MCPcopy Index your code
hub / github.com/github/copilot-sdk / test_should_get_auth_status

Method test_should_get_auth_status

python/e2e/test_client_e2e.py:99–114  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

97
98 @pytest.mark.asyncio
99 async def test_should_get_auth_status(self):
100 client = CopilotClient(connection=RuntimeConnection.for_stdio(path=CLI_PATH))
101
102 try:
103 await client.start()
104
105 auth_status = await client.get_auth_status()
106 assert hasattr(auth_status, "isAuthenticated")
107 assert isinstance(auth_status.isAuthenticated, bool)
108 if auth_status.isAuthenticated:
109 assert hasattr(auth_status, "authType")
110 assert hasattr(auth_status, "statusMessage")
111
112 await client.stop()
113 finally:
114 await client.force_stop()
115
116 @pytest.mark.asyncio
117 async def test_should_list_models_when_authenticated(self):

Callers

nothing calls this directly

Calls 6

startMethod · 0.95
get_auth_statusMethod · 0.95
stopMethod · 0.95
force_stopMethod · 0.95
CopilotClientClass · 0.90
for_stdioMethod · 0.80

Tested by

no test coverage detected