enabled custom serializers in my_ endpoints

This commit is contained in:
Sam
2021-02-09 12:04:47 +00:00
parent d0deec9417
commit a5979b9373
8 changed files with 15 additions and 18 deletions

View File

@@ -390,12 +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()
# check re sponse
self.assertEqual(response.status_code, 200)
# check for object creation
data = json.loads(response.data)
self.assertEquals(len(data), len(expected_instances))
self.assertEquals(len(response.data), len(expected_instances))
class MyProductsViewTest(APITestCase):