def setUp(self): AppInfo.init(__name__, CONFIG['default']) session_id = AppInfo.login("root", "password") self.context = AppInfo.create_context(session_id)
#!/usr/bin/python3 import importlib from flask import Flask, g, session, request, abort, make_response, redirect from flask import Blueprint from flask_restplus import Resource, Api, reqparse from flaskext.mysql import MySQL from config import CONFIG from core.appinfo import AppInfo from core import log import jinjainit AppInfo.init(__name__, CONFIG['default']) jinjainit.init() # Core api endpoints # do not import before AppInfo.init() !!! import api.data.entity import api.data.entitylistfilter import api.data.entityadd import api.data.entityset import api.data.file import api.core.login import api.core.logoff import api.action import api.form.entityupdate import api.form.entityinsert