Ejemplo n.º 1
0
 def setUp(self):
     # insert server type!
     with mock.patch('abell.mongo'):
         app = create_app(test_config)
         self.app = app.test_client()
         self.app_context = app.app_context()
         self.app_context.push()
Ejemplo n.º 2
0
 def setUp(self):
     # insert server type!
     app = create_app(test_config)
     self.app = app.test_client()
     self.app_context = app.app_context()
     self.app_context.push()
     AbellDb().nuke_all_collections()
Ejemplo n.º 3
0
def _make_context():
    return dict(app=create_app(config.dev_config))
Ejemplo n.º 4
0
from abell import create_app, config
from flask_script import Server, Shell, Manager


def _make_context():
    return dict(app=create_app(config.dev_config))


app = create_app(config=config.dev_config)

manager = Manager(app)
manager.add_command('runserver', Server(host="0.0.0.0", port=6000))
manager.add_command('shell', Shell(make_context=_make_context))

if __name__ == '__main__':
    manager.run()
Ejemplo n.º 5
0
 def setUp(self):
     with mock.patch('abell.mongo'):
         app = create_app(test_config)
         self.app = app.test_client()
Ejemplo n.º 6
0
 def setUp(self):
     app = create_app(test_config)
     self.app = app.test_client()