14 lines
384 B
Python
14 lines
384 B
Python
"""Portable isolated regression suite. No running server or live database needed."""
|
|
import subprocess
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
|
|
def main(extra=()):
|
|
root = Path(__file__).resolve().parents[1]
|
|
return subprocess.call([sys.executable, '-m', 'pytest', str(root / 'tests'), '-q', *extra], cwd=root)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
raise SystemExit(main(sys.argv[1:]))
|