fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
option to turn off ssify just for api + some optimizations
[wolnelektury.git]
/
src
/
catalogue
/
tests
/
tags.py
diff --git
a/src/catalogue/tests/tags.py
b/src/catalogue/tests/tags.py
index
8d651a1
..
d5aa72c
100644
(file)
--- 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':
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])
'missing related tag for %s' % category)
self.assertTrue('tag' in [tag.slug for tag in related_themes])