new automated tests

This commit is contained in:
Daniel Winkler 2026-05-24 00:27:46 +10:00
commit 2a521eeabd
7 changed files with 162 additions and 23 deletions

17
tests/ed/test.py Executable file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env python3
import sys
packages = ["requests"]
failed = []
for pkg in packages:
try:
__import__(pkg)
except ImportError:
failed.append(pkg)
if failed:
sys.stderr.write(f"FAIL: {', '.join(failed)}\n")
sys.exit(1)
print("PASS: all packages loaded")