Files
OPNexus/backend/tests/helpers.py
T
Julian Boldt e51df4ba04
Release / verify (push) Canceled after 0s
CI / checks (push) Canceled after 0s
CI / frontend (push) Canceled after 0s
CI / backend (push) Canceled after 0s
Release / test (push) Canceled after 0s
Release / publish (backend) (push) Canceled after 0s
Release / publish (frontend) (push) Canceled after 0s
Release / publish (proxy) (push) Canceled after 0s
Release v1.11.0-rc1
Siehe CHANGELOG.md
2026-10-07 12:24:38 +02:00

10 lines
435 B
Python

"""Shared test helpers."""
async def deploy_approved(client, deploy_url: str):
"""VPN deploys require the token of a fresh preview (like the UI's review
step): fetch it, then POST the deploy with it."""
preview = await client.get(deploy_url.rsplit("/deploy", 1)[0] + "/preview")
assert preview.status_code == 200, preview.text
return await client.post(deploy_url, json={"preview_token": preview.json()["token"]})