third phase of the project management dashboard

This commit is contained in:
Joren de Graaf
2026-10-13 20:50:21 +02:00
parent e4419b4a18
commit 21f3cf09b7
5 changed files with 11 additions and 2 deletions
+6
View File
@@ -69,6 +69,12 @@ class ProjectWorkflowTests(TestCase):
self.assertIn('<h1>Hello</h1>', response.content.decode())
self.assertNotIn('<script>', response.content.decode())
def test_preview_renders_read_only_checklist(self):
self.client.force_login(self.owner)
response = self.client.post(reverse('projects:preview'), {'description_markdown': '- [ ] Pending\n- [x] Done'})
self.assertContains(response, '<input type="checkbox" disabled="">', html=False)
self.assertContains(response, '<input type="checkbox" disabled="" checked="">', html=False)
def test_existing_dashboard_requires_login(self):
self.assertEqual(self.client.get('/').status_code, 302)
self.client.force_login(self.owner)