We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 158dae8 commit e6ef50cCopy full SHA for e6ef50c
1 file changed
tests/test_client.py
@@ -163,11 +163,13 @@ def test_get_article_with_category(self):
163
)
164
165
category_patch = patch(
166
- "python_picnic_api2.client.PicnicAPI.get_category_by_ids").start()
167
- category_patch.return_value = {
+ "python_picnic_api2.client.PicnicAPI.get_category_by_ids")
+ category_patch.start().return_value = {
168
"l2_id": 2000, "l3_id": 3000, "name": "Test"}
169
170
article = self.client.get_article("p3f2qa", True)
171
+
172
+ category_patch.stop()
173
self.session_mock().get.assert_called_with(
174
"https://storefront-prod.nl.picnicinternational.com/api/15/pages/product-details-page-root?id=p3f2qa&show_category_action=true",
175
headers=PICNIC_HEADERS,
0 commit comments