Skip to content

Commit

Permalink
#887 Rm duplicated categories matrix test
Browse files Browse the repository at this point in the history
  • Loading branch information
duker33 committed Jun 21, 2019
1 parent 0039750 commit 5e03321
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions shopelectro/tests/tests_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5e03321

Please sign in to comment.