enabled custom serializers in my_ endpoints
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user