Fixed typos in tests/forms_tests/tests/test_formsets.py.

This commit is contained in:
Ties Jan Hefting 2021-08-03 12:30:17 +02:00 committed by Mariusz Felisiak
parent ae89daf46f
commit 47cb85b542
1 changed files with 3 additions and 3 deletions

View File

@ -602,8 +602,8 @@ class FormsFormsetTestCase(SimpleTestCase):
],
)
def test_formsets_with_order_custom_widget(self):
class OrderingAttributFormSet(BaseFormSet):
def test_formsets_with_ordering_custom_widget(self):
class OrderingAttributeFormSet(BaseFormSet):
ordering_widget = HiddenInput
class OrderingMethodFormSet(BaseFormSet):
@ -611,7 +611,7 @@ class FormsFormsetTestCase(SimpleTestCase):
return HiddenInput(attrs={'class': 'ordering'})
tests = (
(OrderingAttributFormSet, '<input type="hidden" name="form-0-ORDER">'),
(OrderingAttributeFormSet, '<input type="hidden" name="form-0-ORDER">'),
(OrderingMethodFormSet, '<input class="ordering" type="hidden" name="form-0-ORDER">'),
)
for formset_class, order_html in tests: