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

Function mock_same_device_fetcher

tests/unit/customizations/login/test_utils.py:90–104  ·  view source on GitHub ↗
(
    mock_client, mock_auth_code_fetcher, mock_on_pending_auth, private_key
)

Source from the content-addressed store, hash-verified

88
89@pytest.fixture
90def mock_same_device_fetcher(
91 mock_client, mock_auth_code_fetcher, mock_on_pending_auth, private_key
92):
93 with mock.patch(
94 'awscli.customizations.login.utils.secrets.choice', return_value='a'
95 ):
96 fetcher = SameDeviceLoginTokenFetcher(
97 mock_client,
98 mock_auth_code_fetcher,
99 mock_on_pending_auth,
100 private_key,
101 base_uri_builder=fake_get_base_sign_in_uri,
102 )
103
104 return fetcher
105
106
107@pytest.fixture

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected