blob: 26548aa494c416fdc988a7ee3e805aedbe011e08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# -*- coding: utf-8 -*-
from webtest.debugapp import make_debug_app
from webtest.app import TestApp
from doctest import ELLIPSIS
from doctest import NORMALIZE_WHITESPACE
import os
dirname = os.path.dirname(__file__)
def setup_test(test):
app = make_debug_app({},
form=os.path.join(dirname, 'form.html'),
show_form=True)
test.globs['app'] = TestApp(app)
for example in test.examples:
example.options.setdefault(ELLIPSIS, 1)
example.options.setdefault(NORMALIZE_WHITESPACE, 1)
setup_test.__test__ = False
|