(self)
| 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): |
nothing calls this directly
no test coverage detected