mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-13 09:42:32 +03:00
expand test assertions so that test enum conversion with underscores is more interpretable
This commit is contained in:
parent
6008e4d089
commit
43233d7d9d
|
@ -212,6 +212,10 @@ def test_field_with_choices_underscore():
|
|||
|
||||
graphene_type = convert_django_field_with_choices(field)
|
||||
assert len(graphene_type._meta.enum.__members__) == 2
|
||||
assert graphene_type._meta.enum.__members__["A__AMOUNT__"].value == "__amount__"
|
||||
assert graphene_type._meta.enum.__members__["A__AMOUNT__"].description == "Amount"
|
||||
assert graphene_type._meta.enum.__members__["A__PERCENTAGE__"].value == "__percentage__"
|
||||
assert graphene_type._meta.enum.__members__["A__PERCENTAGE__"].description == "Percentage"
|
||||
|
||||
|
||||
def test_should_float_convert_float():
|
||||
|
|
Loading…
Reference in New Issue
Block a user