Homec4science

Flask: integration of legacy unit tests

Authored by kuncar on Apr 5 2013, 17:38.

Description

Flask: integration of legacy unit tests

  • Adds new @with_app_context(...) decorator for ensuring application context in functions called from command line before they will be ported to inveniomanage script.
  • DEPRECATED flaskshell will be removed and replaced with with_app_context decorator or application factory usage.
  • Fixes UserInfo object that was returning uid == 0 instead of -1 for guest users (webuser_unit_tests.py).
  • TODO check inveniocfg_upgrader for upgrades from non-Flask based installations.

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

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Apr 11 2013, 17:10
Parents
R3600:ecf2412f379b: inveniocfg: fix --drop-tables command
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:b21c9d77bd0f: Flask: integration of legacy unit tests (authored by Jiri Kuncar <jiri.kuncar@cern.ch>).Apr 11 2013, 17:10