Simplify migrations and redesign utility scripts.

This commit is contained in:
Michael House 2022-06-29 00:18:14 -05:00 committed by GitHub
parent 19cc4d3d6e
commit 17217d56c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 146 additions and 67 deletions

16
util/test.py Executable file
View 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)