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>
35 lines
745 B
Python
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)
|