Switch to unified view

a/AlluraTesting/alluratest/controller.py b/AlluraTesting/alluratest/controller.py
...
...
19
import ming.orm
19
import ming.orm
20
20
21
from allura import model as M
21
from allura import model as M
22
import allura.lib.security
22
import allura.lib.security
23
from allura.lib.app_globals import Globals
23
from allura.lib.app_globals import Globals
24
from allura.lib import helpers as h
24
from allura.websetup.schema import REGISTRY
25
from allura.websetup.schema import REGISTRY
25
#from allura.lib.custom_middleware import environ as ENV, MagicalC
26
#from allura.lib.custom_middleware import environ as ENV, MagicalC
26
from .validation import ValidatingTestApp
27
from .validation import ValidatingTestApp
27
28
28
DFL_APP_NAME = 'main_without_authn'
29
DFL_APP_NAME = 'main_without_authn'
...
...
80
    c.queued_messages = None
81
    c.queued_messages = None
81
    ThreadLocalORMSession.close_all()
82
    ThreadLocalORMSession.close_all()
82
83
83
def setup_global_objects():
84
def setup_global_objects():
84
    setup_unit_test()
85
    setup_unit_test()
85
    g.set_project('test')
86
    h.set_context('test', 'wiki', neighborhood='Projects')
86
    g.set_app('wiki')
87
    c.user = M.User.query.get(username='test-admin')
87
    c.user = M.User.query.get(username='test-admin')
88
88
89
89
90
class TestController(object):
90
class TestController(object):
91
91