Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed spelling in model_forms test class names

  • Loading branch information...
commit 24f0113fb9bc1a47094a12eff2ae78e8f2bcb0fb 1 parent 97a5971
@qris qris authored claudep committed
Showing with 6 additions and 6 deletions.
  1. +6 −6 tests/model_forms/tests.py
View
12 tests/model_forms/tests.py
@@ -498,7 +498,7 @@ class Meta:
['slug', 'name'])
-class FieldOverridesTroughFormMetaForm(forms.ModelForm):
+class FieldOverridesByFormMetaForm(forms.ModelForm):
class Meta:
model = Category
fields = ['name', 'url', 'slug']
@@ -528,9 +528,9 @@ class Meta:
fields = '__all__'
-class TestFieldOverridesTroughFormMeta(TestCase):
+class TestFieldOverridesByFormMeta(TestCase):
def test_widget_overrides(self):
- form = FieldOverridesTroughFormMetaForm()
+ form = FieldOverridesByFormMetaForm()
self.assertHTMLEqual(
str(form['name']),
'<textarea id="id_name" rows="10" cols="40" name="name"></textarea>',
@@ -545,7 +545,7 @@ def test_widget_overrides(self):
)
def test_label_overrides(self):
- form = FieldOverridesTroughFormMetaForm()
+ form = FieldOverridesByFormMetaForm()
self.assertHTMLEqual(
str(form['name'].label_tag()),
'<label for="id_name">Title:</label>',
@@ -560,14 +560,14 @@ def test_label_overrides(self):
)
def test_help_text_overrides(self):
- form = FieldOverridesTroughFormMetaForm()
+ form = FieldOverridesByFormMetaForm()
self.assertEqual(
form['slug'].help_text,
'Watch out! Letters, numbers, underscores and hyphens only.',
)
def test_error_messages_overrides(self):
- form = FieldOverridesTroughFormMetaForm(data={
+ form = FieldOverridesByFormMetaForm(data={
'name': 'Category',
'url': '/category/',
'slug': '!%#*@',
Please sign in to comment.
Something went wrong with that request. Please try again.