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