Homec4science

testutils: fix global imports

Authored by kuncar on Apr 26 2013, 10:39.

Description

testutils: fix global imports

  • Addresses issue causing errors while running unit tests using nosetests or python interpreter from command line. (closes #1491)
  • NOTE do not use global imports that require or might require application context in the future (e.g. SQLAlchemy models). Alternatively you can use invenio.importutils.lazy_import function that wraps string_import in LocalProxy object.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>

Details

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:14bfea13352c: testutils: fix global imports (authored by Jiri Kuncar <jiri.kuncar@cern.ch>).May 6 2013, 11:40