Child: [5a129e] (diff)

Download this file

test_middleware.py    19 lines (13 with data), 539 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
from os import path, environ
from tg import config
from paste.deploy import loadapp
from paste.script.appinstall import SetupCommand
from paste.deploy import appconfig
from alluratest.controller import setup_basic_test, get_config_file
from allura.config.middleware import make_app
def setUp(self):
"""Method called by nose before running each test"""
setup_basic_test()
def test_make_app():
conf = appconfig('config:%s#main' % get_config_file(), relative_to=config.here)
make_app(conf.global_conf, **conf.local_conf)