MCPcopy Create free account
hub / github.com/aws/aws-cli / setup_method

Method setup_method

tests/unit/customizations/sso/test_utils.py:281–293  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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'

Callers

nothing calls this directly

Calls 2

AuthCodeFetcherClass · 0.90
startMethod · 0.45

Tested by

no test coverage detected