This commit is contained in:
2026-11-07 11:56:38 +03:00
parent bd0b33e273
commit 8f1d7e27c7
46 changed files with 2668 additions and 35 deletions
+24
View File
@@ -0,0 +1,24 @@
import os
import sys
from pathlib import Path
import pytest
ROOT = Path(__file__).resolve().parents[1]
sys.path.insert(0, str(ROOT / "tests"))
from client import Client, Failure # noqa: E402
@pytest.fixture(scope="session")
def base_url():
return os.environ.get("BASE_URL", "http://127.0.0.1:8080")
@pytest.fixture(scope="session")
def live(base_url):
c = Client(base_url, timeout=15)
try:
c.call("GET", "/health/ready", schema="Health")
except Failure as exc:
pytest.skip("API is not ready: %s" % exc)
return c