Implement Lab 7 security and infrastructure
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
sinveria
2026-11-22 11:55:09 +03:00
parent 20afc2c790
commit 6b5461a6b4
83 changed files with 8072 additions and 53 deletions
+3 -2
View File
@@ -1,4 +1,4 @@
"""HTTP helpers for public black-box tests; Python 3.9+, standard library only."""
"""HTTP helpers for public black-box tests; Python 3.9+, standard library only."""
import base64
import datetime as dt
import hashlib
@@ -14,7 +14,7 @@ import uuid
ROOT = Path(__file__).resolve().parents[1]
LAB = json.loads((ROOT / 'lab.json').read_text())['number']
SPEC = json.loads((ROOT / 'contracts/openapi.json').read_text())
SPEC = json.loads((ROOT / 'contracts/openapi.json').read_text(encoding='utf-8-sig'))
class Failure(AssertionError):
pass
@@ -215,3 +215,4 @@ def run(main):
except (Failure,ValueError,OSError) as exc:
print('FAIL:', str(exc))
raise SystemExit(1)