def test_client_inits_api_key_credentials(self): api_key = "sk_live_3geNR4OVI0gQGCAKgcYqQs2I" alma_client = Client.with_api_key(api_key) assert alma_client.context.credentials assert isinstance(alma_client.context.credentials, ApiKeyCredentials) assert alma_client.context.credentials.api_key == api_key
def setUp(self): client = Client.with_api_key("sk_live_3geNR4OVI0gQGCAKgcYqQs2I") self.context = client.context
def setUp(self) -> None: client = Client.with_api_key("sk_test_3geNR4OVI0gQGCAKgcYqQs2I") self.credentials = client.context.credentials self.request = Request(client.context, "https://url.com")