Package web :: Package tests :: Module __main__
[hide private]
[frames] | no frames]

Source Code for Module web.tests.__main__

 1  import unittest 
 2  import sys 
 3  sys.path = ['..'] + sys.path 
 4   
 5  import db 
 6   
 7  db.create() 
 8   
 9  import web 
10   
11 -def input_hack():
12 return dict()
13 web.input = input_hack 14 web.ctx.environ = dict() 15 16 import admin 17 18 admin.session_hook() 19 web.ctx.orm = db.connect() 20 21 import web.webapi 22 23 web.webapi.ctx.path = "" 24 web.webapi.ctx.home = "" 25 web.webapi.ctx.headers = [] 26 27 import testuserdecorators 28 import testsecureconnection 29 30 suite = unittest.TestSuite() 31 #suite.addTest(testuserdecorators.suite()) # TODO: fix this 32 suite.addTest(testsecureconnection.suite()) 33 unittest.TextTestRunner(verbosity=2).run(suite) 34