Skip to content

Commit 8572c67

Browse files
committed
Remove list functions
I am unsure what a list is and cannot find it in the picnic app. If I stumble upon it, the list functions will be re-added
1 parent 6d0c2c3 commit 8572c67

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

integration_tests/test_client.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff 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-
6457
def test_get_cart():
6558
response = picnic.get_cart()
6659
assert isinstance(response, dict)

python_picnic_api2/client.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)