Skip to content

Commit

Permalink
[maykinmedia/open-producten#38] fix Open Producten client tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Floris272 committed Nov 8, 2024
1 parent 6593ea7 commit 6685170
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/openforms/contrib/open_producten/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_get_current_prices(self):
},
},
status_code=200,
url="https://test/producttypes/current-prices",
url="https://test/producttypes/current-prices/",
)

product_type = self.client.get_current_prices()
Expand All @@ -61,7 +61,7 @@ def test_get_current_prices_with_request_exception(self):
self.requests_mock.get(
status_code=404,
json={"error": "not found"},
url="https://test/producttypes/current-prices",
url="https://test/producttypes/current-prices/",
)

with self.assertRaises(requests.RequestException):
Expand Down Expand Up @@ -101,7 +101,7 @@ def test_product_type_fields(self):
],
},
status_code=200,
url=f"https://test/producttypes/{product.uuid}/fields",
url=f"https://test/producttypes/{product.uuid}/fields/",
)

fields = self.client.get_product_type_fields(product.uuid)
Expand All @@ -119,7 +119,7 @@ def test_get_product_type_fields_with_request_exception(self):
self.requests_mock.get(
status_code=404,
json={"error": "not found"},
url=f"https://test/producttypes/{product.uuid}/fields",
url=f"https://test/producttypes/{product.uuid}/fields/",
)

with self.assertRaises(requests.RequestException):
Expand Down

0 comments on commit 6685170

Please sign in to comment.