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

Method setUp

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

Source from the content-addressed store, hash-verified

51
52class TestDoSSOLogin(unittest.TestCase):
53 def setUp(self):
54 self.region = 'us-west-2'
55 self.start_url = 'https://mystarturl.com'
56 self.token_cache = {}
57 self.on_pending_authorization_mock = mock.Mock()
58 self.session = mock.Mock(Session)
59 self.oidc_client = self.get_mock_sso_oidc_client()
60 self.session.create_client.return_value = self.oidc_client
61
62 def get_mock_sso_oidc_client(self):
63 real_client = Session().create_client(

Callers 1

setUpMethod · 0.45

Calls 1

Tested by

no test coverage detected