Skip to content

Commit

Permalink
forum_conversation: update TopicCreateView tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Jun 24, 2024
1 parent 770dcb7 commit e8cb484
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions lacommunaute/forum_conversation/tests/tests_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,15 @@ class TopicCreateViewTest(TestCase):
def setUpTestData(cls):
cls.poster = UserFactory()
cls.forum = ForumFactory(with_public_perms=True)
cls.url = reverse(
"forum_conversation:topic_create",
kwargs={
"forum_slug": cls.forum.slug,
"forum_pk": cls.forum.pk,
},
cls.url = (
reverse(
"forum_conversation:topic_create",
kwargs={
"forum_slug": cls.forum.slug,
"forum_pk": cls.forum.pk,
},
)
+ "?checked=1"
)

cls.post_data = {"subject": faker.text(max_nb_chars=10), "content": faker.paragraph(nb_sentences=5)}
Expand Down

0 comments on commit e8cb484

Please sign in to comment.