implemented basic filter creation during product search

This commit is contained in:
Sam
2021-02-09 13:07:56 +00:00
parent 742f78b4b6
commit 9be0971fb8
4 changed files with 26 additions and 8 deletions

View File

@@ -390,11 +390,11 @@ class ProductSearchTest(TestCase):
url = f"{self.endpoint}?query_string={query_string}"
# send in request
response = self.client.get(url)
# import ipdb; ipdb.set_trace()
import ipdb; ipdb.set_trace()
# check re sponse
self.assertEqual(response.status_code, 200)
# check for object creation
self.assertEquals(len(response.data), len(expected_instances))
self.assertEquals(len(response.data['products']), len(expected_instances))
class MyProductsViewTest(APITestCase):