(
mock_client, mock_auth_code_fetcher, mock_on_pending_auth, private_key
)
| 88 | |
| 89 | @pytest.fixture |
| 90 | def 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 |
nothing calls this directly
no test coverage detected