def setUp(self):
     self.app = create_app(APP_DIR)
     self.app.config['TESTING'] = True
     self.app.system = MockSystem()
     self.client = self.app.test_client()
Exemple #2
0
#!/usr/bin/env python
# settings for uwsgi/command line

import os
from lsdserver import create_app
app_dir = os.path.dirname(os.path.realpath(__file__))
app = create_app(app_dir)

if __name__ == '__main__':
    app.run()