X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b2d342589a7889a3b096e7192453d53bd28eed7d..281e079a27d5f168d0a57c79b17850bc4fcc65a1:/src/catalogue/tests/book_import.py diff --git a/src/catalogue/tests/book_import.py b/src/catalogue/tests/book_import.py index e5d5b0c72..a4452686c 100644 --- a/src/catalogue/tests/book_import.py +++ b/src/catalogue/tests/book_import.py @@ -97,7 +97,7 @@ class BookImportLogicTests(WLTestCase): book = models.Book.from_text_and_meta(ContentFile(book_text), self.book_info) self.assert_([('theme', 'love')], - [(tag.category, tag.slug) for tag in book.fragments.all()[0].tags.filter(category='theme')]) + book.fragments.all()[0].tags.filter(category='theme').values_list('category', 'slug')) def test_book_with_no_theme(self): """ fragments with no themes shouldn't be created at all """