fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aec2bde
)
fix test
author
Marcin Koziej
<marcin@lolownia.org>
Mon, 21 May 2012 12:41:55 +0000
(14:41 +0200)
committer
Marcin Koziej
<marcin@lolownia.org>
Mon, 21 May 2012 12:41:55 +0000
(14:41 +0200)
apps/search/tests/index.py
patch
|
blob
|
history
diff --git
a/apps/search/tests/index.py
b/apps/search/tests/index.py
index
ef253e4
..
7382888
100644
(file)
--- 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")