forms_fixt.py
Go to the documentation of this file.
00001 # -*- coding: utf-8 -*-
00002 from webtest.debugapp import make_debug_app
00003 from webtest.app import TestApp
00004 from doctest import ELLIPSIS
00005 from doctest import NORMALIZE_WHITESPACE
00006 import os
00007 
00008 dirname = os.path.dirname(__file__)
00009 
00010 
00011 def setup_test(test):
00012     app = make_debug_app({},
00013                          form=os.path.join(dirname, 'form.html'),
00014                          show_form=True)
00015     test.globs['app'] = TestApp(app)
00016     for example in test.examples:
00017         example.options.setdefault(ELLIPSIS, 1)
00018         example.options.setdefault(NORMALIZE_WHITESPACE, 1)
00019 
00020 setup_test.__test__ = False


webtest
Author(s): AlexV
autogenerated on Sat Jun 8 2019 20:32:07