diff --git a/tweets/tests.py b/tweets/tests.py index b45fc94..bd40144 100644 --- a/tweets/tests.py +++ b/tweets/tests.py @@ -61,7 +61,10 @@ def test_failure_post_with_too_long_content(self): self.assertEqual(response.status_code, 200) self.assertFalse(Tweet.objects.filter(content=invalid_data["content"]).exists()) - self.assertIn(f"この値は 140 文字以下でなければなりません( {len(invalid_data['content'])} 文字になっています)。", form.errors["content"]) + self.assertIn( + f"この値は 140 文字以下でなければなりません( {len(invalid_data['content'])} 文字になっています)。", + form.errors["content"], + ) class TestTweetDetailView(TestCase):