| from flask_script import Manager | |
| from app import create_app | |
| app = create_app() | |
| manager = Manager(app) | |
| def run(): | |
| """Run the application.""" | |
| app.run() | |
| def test(): | |
| """Run the tests.""" | |
| import pytest | |
| pytest.main(['tests']) | |
| if __name__ == "__main__": | |
| manager.run() |