Use consistent naming for forms test case classes

This commit is contained in:
Christopher C. Wells 2022-06-14 14:05:03 -07:00
parent 0eac0f6934
commit f47fbce0cb
1 changed files with 10 additions and 10 deletions

View File

@ -145,10 +145,10 @@ class InitialValuesTestCase(FormsTestCaseBase):
self.assertEqual(self.localtime_string(self.timer.end), params["end"]) self.assertEqual(self.localtime_string(self.timer.end), params["end"])
class BMIFormsTest(FormsTestCaseBase): class BMIFormsTestCase(FormsTestCaseBase):
@classmethod @classmethod
def setUpClass(cls): def setUpClass(cls):
super(BMIFormsTest, cls).setUpClass() super(BMIFormsTestCase, cls).setUpClass()
cls.bmi = models.BMI.objects.create( cls.bmi = models.BMI.objects.create(
child=cls.child, child=cls.child,
bmi=30, bmi=30,
@ -335,10 +335,10 @@ class FeedingFormsTestCase(FormsTestCaseBase):
self.assertContains(page, "Feeding entry deleted") self.assertContains(page, "Feeding entry deleted")
class HeadCircumferenceFormsTest(FormsTestCaseBase): class HeadCircumferenceFormsTestCase(FormsTestCaseBase):
@classmethod @classmethod
def setUpClass(cls): def setUpClass(cls):
super(HeadCircumferenceFormsTest, cls).setUpClass() super(HeadCircumferenceFormsTestCase, cls).setUpClass()
cls.head_circumference = models.HeadCircumference.objects.create( cls.head_circumference = models.HeadCircumference.objects.create(
child=cls.child, child=cls.child,
head_circumference=15, head_circumference=15,
@ -390,10 +390,10 @@ class HeadCircumferenceFormsTest(FormsTestCaseBase):
self.assertContains(page, "Head Circumference entry deleted") self.assertContains(page, "Head Circumference entry deleted")
class HeightFormsTest(FormsTestCaseBase): class HeightFormsTestCase(FormsTestCaseBase):
@classmethod @classmethod
def setUpClass(cls): def setUpClass(cls):
super(HeightFormsTest, cls).setUpClass() super(HeightFormsTestCase, cls).setUpClass()
cls.height = models.Height.objects.create( cls.height = models.Height.objects.create(
child=cls.child, child=cls.child,
height=12.5, height=12.5,
@ -431,10 +431,10 @@ class HeightFormsTest(FormsTestCaseBase):
self.assertContains(page, "Height entry deleted") self.assertContains(page, "Height entry deleted")
class NoteFormsTest(FormsTestCaseBase): class NoteFormsTestCase(FormsTestCaseBase):
@classmethod @classmethod
def setUpClass(cls): def setUpClass(cls):
super(NoteFormsTest, cls).setUpClass() super(NoteFormsTestCase, cls).setUpClass()
cls.note = models.Note.objects.create( cls.note = models.Note.objects.create(
child=cls.child, child=cls.child,
note="Test note!", note="Test note!",
@ -875,10 +875,10 @@ class ValidationsTestCase(FormsTestCaseBase):
) )
class WeightFormsTest(FormsTestCaseBase): class WeightFormsTestCase(FormsTestCaseBase):
@classmethod @classmethod
def setUpClass(cls): def setUpClass(cls):
super(WeightFormsTest, cls).setUpClass() super(WeightFormsTestCase, cls).setUpClass()
cls.weight = models.Weight.objects.create( cls.weight = models.Weight.objects.create(
child=cls.child, child=cls.child,
weight=8, weight=8,