Skip to content

Commit

Permalink
#961 Review#1 minor style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
duker33 committed Sep 23, 2019
1 parent f70d2d9 commit c43ddc5
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions shopelectro/tests/tests_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
from django.utils.translation import ugettext as _

from catalog.helpers import reverse_catalog_url
from pages import logic as pages_logic
from pages import models as pages_models
from pages import logic as pages_logic, models as pages_models
from pages.urls import reverse_custom_page
from shopelectro import models, views
from shopelectro.views.service import generate_md5_for_ya_kassa, \
Expand Down Expand Up @@ -549,13 +548,13 @@ def test_crumbs(self):
category = roots.first()
self.assertGreater(roots.count(), 1)
soup = self.get_category_soup(roots.first())
db_crumbs = set([
db_crumbs = {
c.model.display_menu_title
for c in pages_logic.Page(category.page).breadcrumbs
])
page_crumbs = set(
[s.text.strip() for s in soup.select('.breadcrumbs-item span')]
)
}
page_crumbs = {
s.text.strip() for s in soup.select('.breadcrumbs-item span')
}
self.assertFalse(db_crumbs - page_crumbs, page_crumbs)

def test_crumb_siblings_presented(self):
Expand Down

0 comments on commit c43ddc5

Please sign in to comment.