mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-04-15 14:42:06 +03:00
fix linting by removing duplicate defintion and test of convert_form_field_to_string_list
This commit is contained in:
parent
81d167a290
commit
5931af924a
|
@ -76,11 +76,6 @@ def convert_form_field_to_id_list(field):
|
|||
return List(ID, required=field.required)
|
||||
|
||||
|
||||
@convert_form_field.register(forms.MultipleChoiceField)
|
||||
def convert_form_field_to_string_list(field):
|
||||
return List(String, required=field.required)
|
||||
|
||||
|
||||
@convert_form_field.register(forms.DateField)
|
||||
def convert_form_field_to_date(field):
|
||||
return Date(description=get_form_field_description(field), required=field.required)
|
||||
|
|
|
@ -66,10 +66,6 @@ def test_should_choice_convert_string():
|
|||
assert_conversion(forms.ChoiceField, String)
|
||||
|
||||
|
||||
def test_should_multiple_choice_convert_list():
|
||||
assert_conversion(forms.MultipleChoiceField, List)
|
||||
|
||||
|
||||
def test_should_base_field_convert_string():
|
||||
assert_conversion(forms.Field, String)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user