Skip to content

Commit

Permalink
Fix forum tests after changing reaction order
Browse files Browse the repository at this point in the history
  • Loading branch information
stopnoanime committed Jan 9, 2025
1 parent 1b4dbf1 commit cf64e9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oioioi/forum/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ def test_reacted_by(self):
self.client.post(upvote_url, follow=True)

response = self.client.get(self.thread_url, follow=True)
self.assertContains(response, 'Test User, Test User 2')
self.assertContains(response, 'Test User 2, Test User')

@override_settings(FORUM_REACTIONS_TO_DISPLAY=2)
def test_reacted_by_many_users(self):
Expand All @@ -779,7 +779,7 @@ def test_reacted_by_many_users(self):
self.client.post(upvote_url, follow=True)

response = self.client.get(self.thread_url, follow=True)
self.assertContains(response, 'Test User, Test User 2 and others')
self.assertContains(response, 'Test User 3, Test User 2 and others')

class TestBan(TestCase):
fixtures = ['test_users', 'test_contest']
Expand Down

0 comments on commit cf64e9f

Please sign in to comment.