/usr/share/paster_templates/webkit/tests/fixture.py_tmpl is in python-pastewebkit 1.0-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import os
from paste.deploy import loadapp
from paste.fixture import TestApp
here_dir = os.path.dirname(__file__)
conf_dir = os.path.join(os.path.dirname(here_dir), 'docs')
def setup_module(mod=None):
wsgiapp = loadapp('config:devel_config.ini#test',
relative_to=conf_dir)
app = TestApp(wsgiapp)
if mod:
mod.app = app
return app
|