diff --git a/tests/catalog/test_models.py b/tests/catalog/test_models.py index 8f8a5a2..6ff98da 100644 --- a/tests/catalog/test_models.py +++ b/tests/catalog/test_models.py @@ -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}')