From 369eaf7547735b435b6a96546ebdf33dd5067311 Mon Sep 17 00:00:00 2001 From: Calum Mackervoy Date: Tue, 11 Jun 2024 14:55:04 +0200 Subject: [PATCH] feat(forum_conversation/tests.py): test explicite pour la seconde page --- lacommunaute/forum_conversation/tests/tests_views.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lacommunaute/forum_conversation/tests/tests_views.py b/lacommunaute/forum_conversation/tests/tests_views.py index aff20a1c5..10af62ddd 100644 --- a/lacommunaute/forum_conversation/tests/tests_views.py +++ b/lacommunaute/forum_conversation/tests/tests_views.py @@ -956,6 +956,18 @@ def test_clickable_tags(self): ), ) + TopicFactory.create_batch(10, with_post=True, forum=self.forum) + response = self.client.get(self.url + "?page=2") + self.assertContains( + response, + ( + f'' + '{ tag.name }' + ), + status_code=200, + ) + class TestPosterTemplate: def test_topic_in_topics_view(self, client, db, snapshot):