Skip to content

Commit

Permalink
stb#340 Refactor test name (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
duker33 committed Dec 25, 2018
1 parent 50ee0ad commit 51e06de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shopelectro/tests/tests_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,12 @@ def test_tag_titles_content_conjunction(self):
tag_titles = delimiter.join(t.name for t in tags)
self.assertContains(response, tag_titles)

def test_tags_var(self):
def test_tags_var_in_db_template(self):
"""
Test CategoryTagsPage with canonical tags.
CategoryTagsPage should contain "tags" template var tag=each(tags) is Tag
class instance.
"tags" db template at CategoryTagsPage
should render tag names. For example "1 м, 20 кг".
"""
tags = models.Tag.objects.order_by(*settings.TAGS_ORDER).all()
response = self.get_category_page(tags=tags)
Expand Down

0 comments on commit 51e06de

Please sign in to comment.