more improvements for tag serializer

This commit is contained in:
Sam
2021-01-25 14:07:11 +00:00
parent 8059cd3667
commit 00b2cf9f22
2 changed files with 30 additions and 8 deletions

View File

@@ -128,7 +128,6 @@ class ProductViewSetTest(APITestCase):
# Query endpoint
response = self.client.post(self.endpoint, data=data, format='json')
import ipdb; ipdb.set_trace()
# Assert endpoint returns created status
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
@@ -162,7 +161,7 @@ class ProductViewSetTest(APITestCase):
'discount': '0.05',
'stock': 22,
'tags': ['tag1x, tag2x'],
'category': 'MayorTagCategory2',
# 'category': 'MayorTagCategory2',
'attributes': ['color/blue', 'size/m'],
'identifiers': '34rf34f43c43',
}