mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-02-05 14:10:36 +03:00
Clean up
This commit is contained in:
parent
69457cffdf
commit
e2284fefb5
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,7 +4,6 @@
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
.virtualenv
|
|
||||||
|
|
||||||
# C extensions
|
# C extensions
|
||||||
*.so
|
*.so
|
||||||
|
|
|
@ -75,6 +75,5 @@ def test_mutations():
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
result = schema.execute(query)
|
result = schema.execute(query)
|
||||||
print(result.data)
|
|
||||||
assert not result.errors
|
assert not result.errors
|
||||||
assert result.data == expected
|
assert result.data == expected
|
||||||
|
|
|
@ -45,7 +45,6 @@ class Article(models.Model):
|
||||||
], default='es')
|
], default='es')
|
||||||
importance = models.IntegerField('Importance', null=True, blank=True,
|
importance = models.IntegerField('Importance', null=True, blank=True,
|
||||||
choices=[(1, u'Very important'), (2, u'Not as important')])
|
choices=[(1, u'Very important'), (2, u'Not as important')])
|
||||||
tag = models.CharField(max_length=100)
|
|
||||||
|
|
||||||
def __str__(self): # __unicode__ on Python 2
|
def __str__(self): # __unicode__ on Python 2
|
||||||
return self.headline
|
return self.headline
|
||||||
|
|
Loading…
Reference in New Issue
Block a user