Skip to content

Commit ae93499

Browse files
committed
add failing test for interface meta
1 parent 2e87ebe commit ae93499

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

graphene/types/tests/test_interface.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,18 @@ class MyInterface(Interface):
2525

2626

2727
def test_generate_interface_with_meta():
28+
class MyFirstInterface(Interface):
29+
pass
30+
2831
class MyInterface(Interface):
2932
class Meta:
3033
name = "MyOtherInterface"
3134
description = "Documentation"
35+
interfaces = [MyFirstInterface]
3236

3337
assert MyInterface._meta.name == "MyOtherInterface"
3438
assert MyInterface._meta.description == "Documentation"
39+
assert MyInterface._meta.interfaces == [MyFirstInterface]
3540

3641

3742
def test_generate_interface_with_fields():

0 commit comments

Comments
 (0)