From 541e85a01fa9bb6a7a22b633caa91495d9f1d3b3 Mon Sep 17 00:00:00 2001 From: JasonHomeWorkstationUbuntu Date: Wed, 11 Nov 2020 14:15:26 +1100 Subject: [PATCH] 7.6 Green? Refactor --- src/lists/tests.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/lists/tests.py b/src/lists/tests.py index 094e1dc..7314889 100644 --- a/src/lists/tests.py +++ b/src/lists/tests.py @@ -9,10 +9,6 @@ from lists.models import Item class HomePageTest(TestCase): - def test_root_url_resolves_to_home_page_view(self): - found = resolve('/') - self.assertEqual(found.func, home_page) - def test_uses_home_template(self): response = self.client.get('/') self.assertTemplateUsed(response, 'home.html') @@ -34,15 +30,6 @@ class HomePageTest(TestCase): self.client.get('/') self.assertEqual(Item.objects.count(), 0) - def test_displays_all_list_items(self): - Item.objects.create(text="itemey 1") - Item.objects.create(text="itemey 2") - - response = self.client.get('/') - - self.assertIn('itemey 1', response.content.decode()) - self.assertIn('itemey 2', response.content.decode()) - class ListViewTest(TestCase): def test_displays_all_items(self):