def setUp(self): TokenCache._token_storage = {} self.mock = mocking.bootstrap_mock() self.client = Client('http://mock-registry/services/testmock', grant_client_id='piksel-workflow', grant_client_secret='blablabla', adapters=[('http://', self.mock)])
def setUp(self): self.mock = mocking.bootstrap_mock() self.client_with_auth = Client( 'http://mock-registry/services/testmock', grant_client_id='piksel-workflow', grant_client_secret='blablabla', adapters=[('http://', self.mock)]) self.client_without_auth = Client( 'http://mock-registry/services/testmock', adapters=[('http://', self.mock)], auth_type=auth.AuthType.NO_AUTH)
def setUp(self): self.mock = mocking.bootstrap_mock() TokenCache._token_storage = {}
def setUp(self): self.mock = mocking.bootstrap_mock()