#smartkiparis

1 messages · Page 1 of 1 (latest)

sterile torrentBOT
dusk root
hybrid umbra
#

Hi 👋

I"m not clear on exactly what you are trying to do here

dusk root
#

Okay, I am writing a Unit test

#

in services.yaml I pass a fake api_client_key, so that a constructor may be properly invoked

#

I mock Stripe and StripeClient

#

But they throw an error that my stripe_api_key is wrong

#

One method in my StripeApiClient as an example

hybrid umbra
#

But they throw an error that my stripe_api_key is wrong
Isn't that what you would expect?

dusk root
#

I need to avoid that

#

while testing

#

I do not need to actually send requests

hybrid umbra
#

Unfortunately then you would need to not use the Stripe Client then