Reformat with black
This commit is contained in:
14
run_tests.py
14
run_tests.py
@@ -17,16 +17,12 @@ def run_tests(args=None):
|
||||
"""Run pytest with optional arguments"""
|
||||
# Use python3 explicitly for compatibility
|
||||
cmd = ["python3", "-m", "pytest"]
|
||||
|
||||
|
||||
if args:
|
||||
cmd.extend(args)
|
||||
else:
|
||||
cmd.extend([
|
||||
"tests/",
|
||||
"-v",
|
||||
"--tb=short"
|
||||
])
|
||||
|
||||
cmd.extend(["tests/", "-v", "--tb=short"])
|
||||
|
||||
try:
|
||||
result = subprocess.run(cmd, check=True)
|
||||
return result.returncode
|
||||
@@ -45,10 +41,10 @@ def main():
|
||||
args = sys.argv[1:]
|
||||
else:
|
||||
args = None
|
||||
|
||||
|
||||
exit_code = run_tests(args)
|
||||
sys.exit(exit_code)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
main()
|
||||
|
Reference in New Issue
Block a user