We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1f23c3c + c708a26 commit e11b6fbCopy full SHA for e11b6fb
{{cookiecutter.app_slug}}/manage.py
@@ -10,6 +10,7 @@
10
from project.server import create_app, db
11
from project.server.models import User
12
import subprocess
13
+import sys
14
15
app = create_app()
16
cli = FlaskGroup(create_app=create_app)
@@ -59,8 +60,9 @@ def test():
59
60
tests = unittest.TestLoader().discover('project/tests', pattern='test*.py')
61
result = unittest.TextTestRunner(verbosity=2).run(tests)
62
if result.wasSuccessful():
- return 0
63
- return 1
+ sys.exit(0)
64
+ else:
65
+ sys.exit(1)
66
67
68
@cli.command()
@@ -75,8 +77,9 @@ def cov():
75
77
COV.report()
76
78
COV.html_report()
79
COV.erase()
80
81
82
83
84
85
0 commit comments