Ejemplo n.º 1
0
 def setup_class(cls):
     # have to clear the log files
     # do this before the app is instantiated or else the files will have
     # write locks
     app_fh = open(path.join(log_base_dir, 'application.log'), 'w')
     app_fh.close()
     error_fh = open(path.join(log_base_dir, 'errors.log'), 'w')
     error_fh.close()
     mail_fh = open(path.join(log_base_dir, 'email.log'), 'w')
     mail_fh.close()
     # create the app
     make_wsgi(cls.settings_name)
Ejemplo n.º 2
0
 def setUp(self):
     self.app = make_wsgi('Testruns')
     self.client = Client(self.app, BaseResponse)
Ejemplo n.º 3
0
 def setup_class(cls):
     make_wsgi('Testruns')
Ejemplo n.º 4
0
 def setUp(self):
     self.app = make_wsgi('Testruns')
Ejemplo n.º 5
0
 def setUp(self):
     self.app = make_wsgi('Testruns')
     self.client = Client(self.app, BaseResponse)
Ejemplo n.º 6
0
 def setup_class(cls):
     make_wsgi('Testruns')
Ejemplo n.º 7
0
 def setup_class(cls):
     cls.app = make_wsgi('Testruns')
     cls.client = Client(cls.app, BaseResponse)