Skip to content

Commit

Permalink
フォーマットの修正
Browse files Browse the repository at this point in the history
  • Loading branch information
KobashiYu committed Jun 25, 2024
1 parent cc84f6b commit b91d887
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tweets/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b91d887

Please sign in to comment.