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