mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-09 08:00:39 +03:00
add failing test for interface meta
This commit is contained in:
parent
2e87ebe5fc
commit
ae93499a37
|
@ -25,13 +25,18 @@ def test_generate_interface():
|
||||||
|
|
||||||
|
|
||||||
def test_generate_interface_with_meta():
|
def test_generate_interface_with_meta():
|
||||||
|
class MyFirstInterface(Interface):
|
||||||
|
pass
|
||||||
|
|
||||||
class MyInterface(Interface):
|
class MyInterface(Interface):
|
||||||
class Meta:
|
class Meta:
|
||||||
name = "MyOtherInterface"
|
name = "MyOtherInterface"
|
||||||
description = "Documentation"
|
description = "Documentation"
|
||||||
|
interfaces = [MyFirstInterface]
|
||||||
|
|
||||||
assert MyInterface._meta.name == "MyOtherInterface"
|
assert MyInterface._meta.name == "MyOtherInterface"
|
||||||
assert MyInterface._meta.description == "Documentation"
|
assert MyInterface._meta.description == "Documentation"
|
||||||
|
assert MyInterface._meta.interfaces == [MyFirstInterface]
|
||||||
|
|
||||||
|
|
||||||
def test_generate_interface_with_fields():
|
def test_generate_interface_with_fields():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user