Skip to content

Commit

Permalink
Url bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Klingensmith committed May 21, 2019
1 parent 8b7c142 commit 1c40bec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ecommerce/hubspot_api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ def test_send_hubspot_get_request(mocker, request_method):
f"ecommerce.hubspot_api.requests.{request_method.lower()}"
)
url_params = urlencode(full_query_params)
base_url = urljoin(HUBSPOT_API_BASE_URL, api_url)
url = f"{urljoin(base_url, endpoint)}?{url_params}"
url = urljoin(f"{HUBSPOT_API_BASE_URL}/", api_url)
url = urljoin(f"{url}/", endpoint)
url = f"{url}?{url_params}"
if request_method == "GET":
send_hubspot_request(endpoint, api_url, "GET", query_params=query_params)
mock_request.assert_called_once_with(url=url)
Expand Down

0 comments on commit 1c40bec

Please sign in to comment.