mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-22 17:46:57 +03:00
parent
e2cdd80a5c
commit
d1d87221d5
|
@ -173,3 +173,14 @@ def test_objecttype_container_benchmark(benchmark):
|
||||||
@benchmark
|
@benchmark
|
||||||
def create_objecttype():
|
def create_objecttype():
|
||||||
Container(field1='field1', field2='field2')
|
Container(field1='field1', field2='field2')
|
||||||
|
|
||||||
|
|
||||||
|
def test_generate_objecttype_description():
|
||||||
|
class MyObjectType(ObjectType):
|
||||||
|
'''
|
||||||
|
Documentation
|
||||||
|
|
||||||
|
Documentation line 2
|
||||||
|
'''
|
||||||
|
|
||||||
|
assert MyObjectType._meta.description == "Documentation\n\nDocumentation line 2"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user