Skip to content

Commit 75e11a8

Browse files
committed
add created field to test
1 parent e05f41a commit 75e11a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graphene_django/rest_framework/tests/test_mutation.py

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
class MyFakeModel(models.Model):
1212
cool_name = models.CharField(max_length=50)
13+
created = models.DateTimeField(auto_now_add=True)
1314

1415

1516
class MyModelSerializer(serializers.ModelSerializer):
@@ -71,6 +72,7 @@ class Meta:
7172
model_input_type = model_input._type.of_type
7273
assert issubclass(model_input_type, InputObjectType)
7374
assert 'cool_name' in model_input_type._meta.fields
75+
assert 'created' in model_input_type._meta.fields
7476

7577

7678
def test_mutate_and_get_payload_success():

0 commit comments

Comments
 (0)