MCPcopy Index your code
hub / github.com/docker/docker-py / test_get_credential_store

Method test_get_credential_store

tests/unit/auth_test.py:468–479  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

466 )
467
468 def test_get_credential_store(self):
469 auth_config = auth.AuthConfig({
470 'credHelpers': {
471 'registry1.io': 'truesecret',
472 'registry2.io': 'powerlock'
473 },
474 'credsStore': 'blackbox',
475 })
476
477 assert auth_config.get_credential_store('registry1.io') == 'truesecret'
478 assert auth_config.get_credential_store('registry2.io') == 'powerlock'
479 assert auth_config.get_credential_store('registry3.io') == 'blackbox'
480
481 def test_get_credential_store_no_default(self):
482 auth_config = auth.AuthConfig({

Callers

nothing calls this directly

Calls 1

get_credential_storeMethod · 0.95

Tested by

no test coverage detected