mirror of
https://github.com/graphql-python/graphene.git
synced 2025-07-18 12:02:19 +03:00
update test to use new EnumOptions
This commit is contained in:
parent
ba6b46088b
commit
b7404ecf81
|
@ -477,9 +477,12 @@ def test_enum_inheritance():
|
|||
class ParentRGB(Enum):
|
||||
RED = 1
|
||||
|
||||
class ChildRGB(ParentRGB, Enum):
|
||||
class ChildRGB(Enum):
|
||||
BLUE = 2
|
||||
|
||||
class Meta:
|
||||
enums = (ParentRGB,)
|
||||
|
||||
class Query(ObjectType):
|
||||
color = ChildRGB(required=True)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user