diff --git a/api/tests.py b/api/tests.py index 534e2595..d71be462 100644 --- a/api/tests.py +++ b/api/tests.py @@ -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) diff --git a/api/views.py b/api/views.py index c2101a81..80e5e28e 100644 --- a/api/views.py +++ b/api/views.py @@ -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