X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/de00c122325294f931edf20f8dbc9b0801c3f0de..fa9ab52217a8e6912fa4677fc7bb1da21044b470:/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")