new way of handling category searches

This commit is contained in:
Sam
2021-03-19 10:53:49 +00:00
parent 2673aa51aa
commit 23109cfb39
3 changed files with 19 additions and 5 deletions

View File

@@ -793,7 +793,7 @@ class ProductSearchTest(TestCase):
]
q = quote("zapatos rojos")
url = f"{self.endpoint}?q={q}&category=ropa&category=nueva"
url = f"{self.endpoint}?q={q}&category[]=ropa&category[]=nueva"
# send in request
response = self.client.get(url)
# check response