X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/5767a4cec1018349191a60406a82b6a4d2ae431a..b9dc6590aa12ae1b04e11dbb57684c5630c1e3bd:/src/catalogue/tests/tags.py?ds=sidebyside diff --git a/src/catalogue/tests/tags.py b/src/catalogue/tests/tags.py index 8d651a19b..d5aa72c49 100644 --- a/src/catalogue/tests/tags.py +++ b/src/catalogue/tests/tags.py @@ -232,7 +232,7 @@ class TestIdenticalTag(WLTestCase): related_themes = book.related_themes() for category in 'author', 'kind', 'genre', 'epoch': - self.assertTrue('tag' in [tag.slug for tag in book.tags.filter(category=category)], + self.assertTrue('tag' in book.tags.filter(category=category).values_list('slug', flat=True), 'missing related tag for %s' % category) self.assertTrue('tag' in [tag.slug for tag in related_themes])