make test command exit with correct status

master
Jeremy Epstein 8 years ago
parent 6739ba9859
commit 2f1168b6d4
  1. 4
      {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/cli.py

@ -18,7 +18,9 @@ TEST_PATH = os.path.join(PROJECT_ROOT, 'tests')
def test():
"""Run the tests."""
import pytest
pytest.main([TEST_PATH, '--verbose'])
rv = pytest.main([TEST_PATH, '--verbose'])
if rv is not 0:
exit(rv)
@click.command()

Loading…
Cancel
Save