Simplify migrations and redesign utility scripts.
This commit is contained in:
parent
19cc4d3d6e
commit
17217d56c2
8 changed files with 146 additions and 67 deletions
16
util/test.py
Executable file
16
util/test.py
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
from common import _operation
|
||||
|
||||
def run_test(args):
|
||||
result = _operation("tests",[
|
||||
"cd service",
|
||||
"FLASK_APP=files/cli:app python3 -m flask db upgrade",
|
||||
"python3 -m pytest -s",
|
||||
])
|
||||
|
||||
sys.exit(result.returncode)
|
||||
|
||||
if __name__=='__main__':
|
||||
run_test(sys.argv)
|
Loading…
Add table
Add a link
Reference in a new issue