Skip to content

Commit 7f47adb

Browse files
committed
Add unit test for ean search
1 parent a87006d commit 7f47adb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_client.py

+8
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@ def test_search_encoding(self):
106106
headers=PICNIC_HEADERS,
107107
)
108108

109+
def test_get_article_by_gtin(self):
110+
self.client.get_article_by_gtin("123456789")
111+
self.session_mock().get.assert_called_with(
112+
"https://picnic.app/nl/qr/gtin/123456789",
113+
headers=PICNIC_HEADERS,
114+
allow_redirects=False,
115+
)
116+
109117
def test_get_cart(self):
110118
self.client.get_cart()
111119
self.session_mock().get.assert_called_with(

0 commit comments

Comments
 (0)