Skip to content

Commit

Permalink
BibUpload: fix regression tests WRT WordTable
Browse files Browse the repository at this point in the history
* Fix regression tests that were using indexing WRT WordTable initialisation.
  • Loading branch information
tiborsimko committed Mar 25, 2011
1 parent f482294 commit 55ae1db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/bibupload/lib/bibupload_regression_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def force_webcoll(recid):
from invenio import websearch_webcoll
reload(websearch_webcoll)
index_id, index_name, index_tags = bibindex_engine.get_word_tables("collection")[0]
bibindex_engine.WordTable(index_id, index_tags, "idxWORD%02dF", default_get_words_fnc=bibindex_engine.get_words_from_phrase, tag_to_words_fnc_map={'8564_u': bibindex_engine.get_words_from_fulltext}).add_recIDs([[recid, recid]], 1)
bibindex_engine.WordTable(index_name, index_id, index_tags, "idxWORD%02dF", default_get_words_fnc=bibindex_engine.get_words_from_phrase, tag_to_words_fnc_map={'8564_u': bibindex_engine.get_words_from_fulltext}).add_recIDs([[recid, recid]], 1)
c = websearch_webcoll.Collection()
c.calculate_reclist()
c.update_reclist()
Expand Down

0 comments on commit 55ae1db

Please sign in to comment.