ads / manage.py
rastof9's picture
Create manage.py
3bee666 verified
raw
history blame contribute delete
322 Bytes
from flask_script import Manager
from app import create_app
app = create_app()
manager = Manager(app)
@manager.command
def run():
"""Run the application."""
app.run()
@manager.command
def test():
"""Run the tests."""
import pytest
pytest.main(['tests'])
if __name__ == "__main__":
manager.run()