forked from mtusi2026/mtusi2026lab6
docs(evidence): all tests for 3 and 4 with results
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
set -e;
|
||||
docker compose stop worker;
|
||||
trap 'docker compose start worker' EXIT;
|
||||
|
||||
PYTHONUTF8=1 python -u - <<'PY'
|
||||
|
||||
import sys
|
||||
import time
|
||||
|
||||
sys.path.insert(0, "tests")
|
||||
from client import Client
|
||||
|
||||
client = Client("http://127.0.0.1:8080")
|
||||
alice, _, _, chat = client.bootstrap()
|
||||
|
||||
for i in range(18):
|
||||
attachment, _ = client.attachment(alice, chat)
|
||||
print(f"{i + 1}/18: {attachment['id']} — {attachment['status']}")
|
||||
time.sleep(15)
|
||||
|
||||
PY
|
||||
Reference in New Issue
Block a user