X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/de00c122325294f931edf20f8dbc9b0801c3f0de..ce8bb4b693d45e5e33f94cbf5fb381acb8d593ad:/apps/search/tests/index.py diff --git a/apps/search/tests/index.py b/apps/search/tests/index.py index ef253e4c1..738288892 100644 --- a/apps/search/tests/index.py +++ b/apps/search/tests/index.py @@ -47,8 +47,7 @@ class BookSearchTests(WLTestCase): b.book_id == self.book.id a = SearchResult.aggregate(books) # just one fragment hit. - assert len(filter(lambda x: x[1], a[0].hits)) == 1 - print a[0].process_hits() + assert len(a[0].hits) == 1 def test_search_perfect_author_title(self): books = self.search.search_perfect_book("szarzyński anusie")