improvemnets to filters provided by product search results

This commit is contained in:
Sam
2021-02-15 11:59:24 +00:00
parent c38e9dd822
commit 10ac56c5e9
2 changed files with 50 additions and 7 deletions

View File

@@ -471,8 +471,6 @@ class ProductSearchTest(TestCase):
self.factory(tags="azules"),
]
self.factory(tags="azul")
query_string = quote("zapatos rojos")
url = f"{self.endpoint}?query_string={query_string}"
@@ -483,6 +481,8 @@ class ProductSearchTest(TestCase):
self.assertEqual(response.status_code, 200)
# check for object creation
self.assertEquals(len(payload['products']), len(expected_instances))
# check for filters
self.assertNotEquals([], payload['filters']['singles'])
class MyProductsViewTest(APITestCase):