(self)
| 279 | """ |
| 280 | |
| 281 | def setup_method(self): |
| 282 | self.fetcher = AuthCodeFetcher() |
| 283 | self.url = ( |
| 284 | f'http://127.0.0.1:{self.fetcher.http_server.server_address[1]}/' |
| 285 | ) |
| 286 | |
| 287 | # Start the server on a background thread so that |
| 288 | # the test thread can make the request |
| 289 | self.server_thread = threading.Thread( |
| 290 | target=self.fetcher.get_auth_code_and_state |
| 291 | ) |
| 292 | self.server_thread.daemon = True |
| 293 | self.server_thread.start() |
| 294 | |
| 295 | def test_expected_auth_code(self): |
| 296 | expected_code = '1234' |
nothing calls this directly
no test coverage detected