forked from mtusi2026/mtusi2026lab2
finished
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
sys.path.insert(0, str(ROOT / "student-tests"))
|
||||
os.environ["RUN_EXPIRY"] = "1"
|
||||
from run import test_expiry # noqa: E402
|
||||
|
||||
sys.path.insert(0, str(ROOT / "tests"))
|
||||
from client import Client, run # noqa: E402
|
||||
|
||||
|
||||
def main():
|
||||
c = Client(os.environ.get("BASE_URL", "http://localhost:8080"))
|
||||
test_expiry(c)
|
||||
print("PASS: session expiry")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
run(main)
|
||||
Reference in New Issue
Block a user