forked from mtusi2026/mtusi2026lab6
21 lines
436 B
Bash
21 lines
436 B
Bash
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 |