Skip to content

Commit a7c3337

Browse files
committed
Add test for duration field
1 parent 68f6281 commit a7c3337

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

graphene_django/rest_framework/tests/test_field_converter.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,7 @@ class StringListField(serializers.ListField):
120120

121121
def test_should_dict_convert_dict():
122122
assert_conversion(serializers.DictField, DictType)
123+
124+
125+
def test_should_duration_convert_string():
126+
assert_conversion(serializers.DurationField, graphene.String)

0 commit comments

Comments
 (0)