# -*- coding: utf-8 -*-

from flask.ext.script import Manager

from gastosabertos import create_app


app = create_app()
manager = Manager(app)


@manager.command
def run():
    """Run in local machine."""

    app.run()

@manager.command
def test():
    """Run tests."""

    return True

if __name__ == "__main__":
    manager.run()

# -*- coding: utf-8 -*-

from flask.ext.script import Manager

from gastosabertos import create_app


app = create_app()
manager = Manager(app)


@manager.command
def run():
    """Run in local machine."""

    app.run()

@manager.command
def test():
    """Run tests."""

    return

if __name__ == "__main__":
    manager.run()

Remove return value from manage.py test