File tree Expand file tree Collapse file tree 2 files changed +0
-26
lines changed
Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,6 @@ def test_get_article_with_category_name():
5454 picnic .get_article ("s1018620" , add_category_name = True )
5555
5656
57- def test_get_lists ():
58- response_1 = picnic .get_lists ()
59- response_2 = picnic .get_lists ("21725" )
60- assert isinstance (response_1 , list )
61- assert isinstance (response_2 , list )
62-
63-
6457def test_get_cart ():
6558 response = picnic .get_cart ()
6659 assert isinstance (response , dict )
Original file line number Diff line number Diff line change @@ -97,25 +97,6 @@ def search(self, term: str):
9797 raw_results = self ._get (path , add_picnic_headers = True )
9898 return _extract_search_results (raw_results )
9999
100- def get_lists (self , list_id : str = None ):
101- if list_id :
102- path = "/lists/" + list_id
103- else :
104- path = "/lists"
105- return self ._get (path )
106-
107- def get_sublist (self , list_id : str , sublist_id : str ) -> list :
108- """Get sublist.
109-
110- Args:
111- list_id (str): ID of list, corresponding to requested sublist.
112- sublist_id (str): ID of sublist.
113-
114- Returns:
115- list: Sublist result.
116- """
117- return self ._get (f"/lists/{ list_id } ?sublist={ sublist_id } " )
118-
119100 def get_cart (self ):
120101 return self ._get ("/cart" )
121102
You can’t perform that action at this time.
0 commit comments