Skip to content
This repository
tree: d21731f77a
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 37 lines (28 sloc) 0.836 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
# -*- coding: utf-8 -*-

"""
This file is unused
- current tests are in modules/tests
"""

__all__ = ["WSGI_Test"]

import wsgi_intercept.webtest_intercept

class WSGI_Test(wsgi_intercept.webtest_intercept.WebCase):
    """
Class to use for Testing Sahana
- DocTests can call this direct
- UnitTests can extend this
"""
    HTTP_CONN = wsgi_intercept.WSGI_HTTPConnection
    HOST = "localhost"
    PORT = 8000

    def __init__(self, db):
        "Copy Intialise"
        wsgi_intercept.webtest_intercept.WebCase.__init__(self)
        #current.db=db
        return

    def setUp(self):
        "Hook into the WSGI process"
        wsgi_intercept.add_wsgi_intercept(self.HOST, self.PORT, create_fn)
        return

    def runTest(self):
        "Mandatory method for all TestCase instances"
        return

Something went wrong with that request. Please try again.