mirror of
https://github.com/dwinkler1/np.git
synced 2026-05-23 13:43:31 -04:00
new automated tests
This commit is contained in:
parent
d90f82b2bb
commit
2a521eeabd
7 changed files with 162 additions and 23 deletions
17
tests/ed/test.py
Executable file
17
tests/ed/test.py
Executable 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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue