def test_client_inits_merchant_id_credentials(self): merchant_id = "merchant" alma_client = Client.with_merchant_id(merchant_id) assert alma_client.context.credentials assert isinstance(alma_client.context.credentials, MerchantIdCredentials) assert alma_client.context.credentials.merchant_id == merchant_id
def setUp(self) -> None: self.merchant_id = "merchant" client = Client.with_merchant_id(self.merchant_id) self.credentials = client.context.credentials self.request = Request(client.context, "https://url.com")