hack-house/.venv/lib/python3.12/site-packages/tests/extensions/openapi/test_config.py
leetcrypt bb1d662ee1 chore: rename project coven → hack-house ⛧
Rebrand the Rust client crate (coven/ → hh/, package+binary "hack-house"),
README, CLI strings, and branch (coven → hack-house). Gitea repo renamed
cmd-chat → hack-house to match. Crypto/server logic unchanged; selftest +
golden-vector test still green, binary is now `hack-house`.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-30 13:29:14 -07:00

35 lines
745 B
Python

import pytest
from .utils import get_spec
@pytest.mark.parametrize(
"schemes,expected",
(
(None, ("http://example.com/",)),
("https", ("https://example.com/",)),
(
"http,https",
(
"http://example.com/",
"https://example.com/",
),
),
(
["http", "https"],
(
"http://example.com/",
"https://example.com/",
),
),
),
)
def test_config_scheme(app, schemes, expected):
app.config.API_SCHEMES = schemes
app.config.API_HOST = "example.com"
spec = get_spec(app)
urls = {s["url"] for s in spec["servers"]}
assert urls == set(expected)