We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fe1cf7 commit ed48620Copy full SHA for ed48620
{{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)
@@ -64,8 +65,9 @@ def test():
64
65
tests = unittest.TestLoader().discover('project/tests', pattern='test*.py')
66
result = unittest.TextTestRunner(verbosity=2).run(tests)
67
if result.wasSuccessful():
- return 0
68
- return 1
+ sys.exit(0)
69
+ else:
70
+ sys.exit(1)
71
72
73
@cli.command()
@@ -80,8 +82,9 @@ def cov():
80
82
COV.report()
81
83
COV.html_report()
84
COV.erase()
85
86
87
88
89
90
0 commit comments