Skip to content

Commit

Permalink
global: test suite original modification date fix
Browse files Browse the repository at this point in the history
* Fixes test suite's handling of record original modification dates that
  was causing troubles on a Debian 6 installation using Python-2.6,
  MySQL-5.1, MySQLdb-1.2.4.  (closes inveniosoftware#2737)

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
  • Loading branch information
tiborsimko committed Feb 5, 2015
1 parent a5da27b commit 8d7e0dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/bibindex/lib/bibindex_regression_tests.py
Expand Up @@ -786,7 +786,7 @@ def test_authority_record_recently_updated(self):
index_name = 'author'
table = "idxWORD%02dF" % get_index_id_from_index_name(index_name)
reindex_for_type_with_bibsched(index_name)
original_modification_date = run_sql("SELECT modification_date FROM bibrec WHERE id=%s", (authRecID,))
original_modification_date = run_sql("SELECT modification_date FROM bibrec WHERE id=%s", (authRecID,))[0][0]
run_sql("UPDATE bibrec SET modification_date = now() WHERE id=%s", (authRecID,))
# run bibindex again
task_id = reindex_for_type_with_bibsched(index_name, force_all=True)
Expand Down
Expand Up @@ -79,7 +79,7 @@
class TestTask(InvenioTestCase):
def setUp(self, recid=RECID, arxiv_id=ARXIV_ID):
self.recid = recid
self.original_modification_date = run_sql("SELECT modification_date FROM bibrec WHERE id=%s", (self.recid,))
self.original_modification_date = run_sql("SELECT modification_date FROM bibrec WHERE id=%s", (self.recid,))[0][0]
self.arxiv_id = arxiv_id
self.arxiv_version = 1
self.bibupload_xml = """<record>
Expand Down

0 comments on commit 8d7e0dc

Please sign in to comment.