fix (test): Rules are now shown on terms of service page

This commit is contained in:
2025-08-09 12:30:22 +02:00
parent 8c5099f14a
commit 3604233507

View File

@@ -60,11 +60,19 @@ class BasicViewTest(TestCase):
self.client.login(username='testuser0', password='12345')
response = self.client.get(reverse('about'))
self.assertEqual(response.status_code, 200)
self.assertContains(response, "Rule 1")
def test_about_anonymous(self):
response = self.client.get(reverse('about'))
self.assertEqual(response.status_code, 200)
def terms_of_service_logged_in(self):
response = self.client.get(reverse('terms-of-service'))
self.assertEqual(response.status_code, 200)
self.assertContains(response, "Rule 1")
def terms_of_service_anonymous(self):
response = self.client.get(reverse('terms-of-service'))
self.assertEqual(response.status_code, 200)
self.assertContains(response, "Rule 1")
def test_report_adoption_logged_in(self):