Fix formatting

This commit is contained in:
Christopher C. Wells 2022-05-27 16:17:53 -07:00 committed by Christopher Charbonneau Wells
parent 48c039eebb
commit 5b7bd52a41
2 changed files with 4 additions and 2 deletions

View File

@ -412,7 +412,9 @@ class HeadCircumferenceAPITestCase(TestBase.BabyBuddyAPITestCaseBase):
response = self.client.get(endpoint)
entry = response.data
entry["head_circumference"] = 23
response = self.client.patch(endpoint, {"head_circumference": entry["head_circumference"]})
response = self.client.patch(
endpoint, {"head_circumference": entry["head_circumference"]}
)
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.data, entry)

View File

@ -20,7 +20,7 @@ class BMIViewSet(viewsets.ModelViewSet):
"""
name = models.BMI._meta.verbose_name
if self.suffix:
name += ' ' + self.suffix
name += " " + self.suffix
return name