def setUp(self): self.app = create_app()
def setUp(self, statsd_client): cfg['metrics'] = True self.app = create_app() self.client = Client(self.app, BaseResponse)
def setUp(self): self.app = create_app() self.client = Client(self.app, BaseResponse) self.redis = fakeredis.FakeStrictRedis()
def setUp(self): # tried using fakeredis here but it barfed on scripts self.app = create_app() self.client = Client(self.app, BaseResponse)
import os from werkzeug.serving import run_simple from sixpack.server import create_app port = int(os.environ.get('SIXPACK_PORT', 5000)) debug = 'SIXPACK_DEBUG' in os.environ application = create_app() if __name__ == '__main__': run_simple('0.0.0.0', port, application, use_debugger=debug, use_reloader=debug)
def setUp(self): self.app = create_app() self.client = Client(self.app, BaseResponse)
import os from werkzeug.serving import run_simple from sixpack.server import create_app port = int(os.environ.get('SIXPACK_PORT', 5000)) debug = 'SIXPACK_DEBUG' in os.environ application = create_app() if __name__ == '__main__': run_simple('0.0.0.0', port, application, use_debugger=debug, use_reloader=debug)
def setUp(self): self.app = create_app()
def setUp(self): # tried using fakeredis here but it barfed on scripts self.app = create_app() self.client = Client(self.app, BaseResponse)
def setUp(self, statsd_client): cfg['metrics'] = True self.app = create_app() self.client = Client(self.app, BaseResponse)