Skip to content

Commit

Permalink
use global client override
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym-stripe committed May 18, 2023
1 parent 6bb4e80 commit bc485f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_raw_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ class TestRawRequest(object):
GET_ABS_URL = stripe.api_base + GET_REL_URL

@pytest.fixture(autouse=True)
def setup_stripe(self):
def setup_stripe(self, http_client):
orig_attrs = {
"api_key": stripe.api_key,
"api_version": stripe.api_version,
"default_http_client": stripe.default_http_client,
}
stripe.api_key = "sk_test_123"
stripe.api_version = "2017-12-14"
stripe.default_http_client = None
stripe.default_http_client = http_client
yield
stripe.api_key = orig_attrs["api_key"]
stripe.api_version = orig_attrs["api_version"]
Expand All @@ -42,7 +42,7 @@ def setup_stripe(self):
def test_form_request_get(self, http_client, mock_response, check_call):
mock_response('{"id": "acct_123", "object": "account"}', 200)

params = {"client": http_client}
params = {}

resp = stripe.raw_request("get", self.GET_REL_URL, **params)

Expand Down

0 comments on commit bc485f9

Please sign in to comment.