Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemijRodionov committed Feb 22, 2019
1 parent 8be869f commit e562ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/catalog/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def test_long_name(self):
group = catalog_models.MockTagGroup.objects.first()
try:
tag = catalog_models.MockTag.objects.create(group=group, name=name)
self.assertLessEqual(len(tag.slug), catalog.models.SLUG_MAX_LENGTH)
self.assertLessEqual(len(tag.slug), catalog.models.Tag.SLUG_MAX_LENGTH)
except DataError as e:
self.assertTrue(False, f'Tag has too long name. {e}')

Expand Down

0 comments on commit e562ad5

Please sign in to comment.