Skip to content

Commit

Permalink
test4
Browse files Browse the repository at this point in the history
  • Loading branch information
budhrajaankita committed Apr 22, 2024
1 parent 035cc21 commit 9734335
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tasks/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ def test_view_url_accessible_by_name(self):
self.assertEqual(response.status_code, 200)


def test_view_uses_correct_template(self):
response = self.client.get(reverse('task_list'))
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'tasks/task_list.html')





# class TaskFormTest(TestCase):
# def test_form_validity(self):
Expand Down

0 comments on commit 9734335

Please sign in to comment.