Fix checks for exit codes and update doc for shell command

master
Steven Loria 8 years ago
parent 67d5c12daf
commit c9a5139bef
  1. 2
      {{cookiecutter.app_name}}/README.rst
  2. 5
      {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/commands.py

@ -49,7 +49,7 @@ To open the interactive shell, run ::
flask shell
By default, you will have access to ``app``, ``db``, ``g``, and the ``User`` model.
By default, you will have access to the flask ``app``.
Running Tests

@ -19,8 +19,7 @@ def test():
"""Run the tests."""
import pytest
rv = pytest.main([TEST_PATH, '--verbose'])
if rv is not 0:
exit(rv)
exit(rv)
@click.command()
@ -40,7 +39,7 @@ def lint(fix_imports):
command_line = list(args) + files_and_directories
click.echo('{}: {}'.format(description, ' '.join(command_line)))
rv = call(command_line)
if rv is not 0:
if rv != 0:
exit(rv)
if fix_imports:

Loading…
Cancel
Save