From 3daf83d725e5e5092f0cf70ea7e1ae9ed96966cb Mon Sep 17 00:00:00 2001 From: moanos Date: Sun, 9 Mar 2025 18:05:29 +0100 Subject: [PATCH] tests: Fix testing for edit buttons --- src/tests/test_views/test_basic_views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/test_views/test_basic_views.py b/src/tests/test_views/test_basic_views.py index c9d5351..9ca0735 100644 --- a/src/tests/test_views/test_basic_views.py +++ b/src/tests/test_views/test_basic_views.py @@ -108,7 +108,7 @@ class BasicViewTest(TestCase): self.assertTrue(ReportComment.objects.filter(reported_comment=c.pk).exists()) def test_show_report_details_logged_in(self): - self.client.login(username='testuser0', password='12345') + self.client.login(username='testuser1', password='12345') report = ReportComment.objects.get(user_comment="ReportComment1") response = self.client.get(reverse('report-detail', args=(report.pk,))) self.assertEqual(response.status_code, 200) @@ -125,7 +125,7 @@ class BasicViewTest(TestCase): self.assertNotContains(response, '
') def test_show_report_details_admin(self): - self.client.login(username='testuser1', password='12345') + self.client.login(username='testuser0', password='12345') report = ReportComment.objects.get(user_comment="ReportComment1") response = self.client.get(reverse('report-detail', args=(report.pk,))) self.assertEqual(response.status_code, 200)