more tests for tagging serializer
This commit is contained in:
@@ -6,7 +6,7 @@ from products.models import Product
|
||||
from utils.tag_serializers import SingleTagSerializerField, CustomTagSerializer
|
||||
|
||||
|
||||
class ProductSerializer(CustomTagSerializer, serializers.ModelSerializer):
|
||||
class ProductSerializer(CustomTagSerializer):
|
||||
|
||||
tags = TagListSerializerField(required=False)
|
||||
category = SingleTagSerializerField(required=False) # main tag category
|
||||
|
||||
@@ -118,7 +118,7 @@ class ProductViewSetTest(APITestCase):
|
||||
'stock': 22,
|
||||
'tags': ['tag1, tag2'],
|
||||
# 'category': 'MayorTagCategory',
|
||||
# 'attributes': ['color/red', 'size/xxl'],
|
||||
'attributes': ['color/red', 'size/xxl'],
|
||||
'identifiers': '34rf34f43c43',
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user