X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/de00c122325294f931edf20f8dbc9b0801c3f0de..378665e6e0ee8595e3c97096331bab365845cd9e:/apps/search/tests/index.py?ds=sidebyside 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")