File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ def json(self):
23
23
return self .json_data
24
24
25
25
def setUp (self ) -> None :
26
- self .session_patcher = patch ("python_picnic_api2.client.PicnicAPISession" )
26
+ self .session_patcher = patch (
27
+ "python_picnic_api2.client.PicnicAPISession" )
27
28
self .session_mock = self .session_patcher .start ()
28
29
self .client = PicnicAPI (username = "test@test.nl" , password = "test" )
29
30
self .expected_base_url = DEFAULT_URL .format ("nl" , "15" )
@@ -106,6 +107,13 @@ def test_search_encoding(self):
106
107
headers = PICNIC_HEADERS ,
107
108
)
108
109
110
+ def test_get_article (self ):
111
+ self .client .get_article ("p3f2qa" )
112
+ self .session_mock ().get .assert_called_with (
113
+ "https://storefront-prod.nl.picnicinternational.com/api/15/pages/product-details-page-root?id=p3f2qa" ,
114
+ headers = PICNIC_HEADERS ,
115
+ )
116
+
109
117
def test_get_article_by_gtin (self ):
110
118
self .client .get_article_by_gtin ("123456789" )
111
119
self .session_mock ().get .assert_called_with (
You can’t perform that action at this time.
0 commit comments