From 5e033216c5afb05a5410281fec46ab485ca9c9f9 Mon Sep 17 00:00:00 2001 From: duker33 Date: Fri, 21 Jun 2019 18:18:49 +0300 Subject: [PATCH] #887 Rm duplicated categories matrix test --- shopelectro/tests/tests_views.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/shopelectro/tests/tests_views.py b/shopelectro/tests/tests_views.py index 924a3654..6644fabd 100644 --- a/shopelectro/tests/tests_views.py +++ b/shopelectro/tests/tests_views.py @@ -527,21 +527,6 @@ def test_tags_pagination_has_canonical_links(self): ) ) - def test_category_matrix_page(self): - """Matrix page should contain all second level categories.""" - page = CustomPage.objects.get(slug='catalog') - response = self.client.get(page.url) - soup = BeautifulSoup( - response.content.decode('utf-8'), - 'html.parser' - ) - self.assertEqual(200, response.status_code) - - categories_db = models.Category.objects.active() - categories_app = soup.find_all(tag='a', class_='catalog-list-item') - for from_db, from_app in zip(categories_db, categories_app): - self.assertEqual(from_db.name, from_app.a.text) - @tag('fast', 'catalog') class CategoriesMatrix(BaseCatalogTestCase):