Ejemplo n.º 1
0
 def setUp(self):
     """Setting the app up."""
     self.server_address = "http://localhost:3030/$/"
     self.request_address = "http://localhost:3030/ds"
     self.API = "http://localhost:7030/"
     self.version = "0.2"
     self.app = init_api()
Ejemplo n.º 2
0
def server(host, port, log, workers):
    """Run web server with options."""
    options = {
        'bind': '{0}:{1}'.format(host, port),
        'workers': workers,
        'daemon': 'True',
        'errorlog': log
    }
    PROVService(init_api(), options).run()
 def setUp(self):
     """Set up test fixtures."""
     self.host = '127.0.0.1'
     self.workers = number_of_workers()
     self.port = 7030
     self.log = 'logs/server.log'
     options = {
         'bind': '{0}:{1}'.format(self.host, self.port),
         'workers': self.workers,
         'daemon': 'True',
         'errorlog': self.log
     }
     self.app = PROVService(init_api(), options)
     # propagate the exceptions to the test client
     self.app.testing = True
 def setUp(self):
     """Setting the app up."""
     self.api = "http://localhost:7030/"
     self.version = "0.2"
     self.app = init_api()
 def setUp(self):
     """Setting the app up."""
     self.app = init_api()
Ejemplo n.º 6
0
 def setUp(self):
     """Setting the app up."""
     self.version = "0.2"
     self.app = init_api()