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>
25 lines
658 B
Python
25 lines
658 B
Python
from sys import version_info
|
|
from typing import Any
|
|
|
|
import pytest
|
|
|
|
from sanic_ext.extras.validation.schema import parse_hint
|
|
|
|
|
|
@pytest.mark.skipif(version_info < (3, 9), reason="Not needed on 3.8")
|
|
def test_parse_generic_list():
|
|
hint_1 = parse_hint(list[int])
|
|
hint_2 = parse_hint(list[int])
|
|
|
|
assert hint_1.origin == hint_2.origin
|
|
assert hint_1.allowed == hint_2.allowed
|
|
|
|
|
|
@pytest.mark.skipif(version_info < (3, 9), reason="Not needed on 3.8")
|
|
def test_parse_generic_dict():
|
|
hint_1 = parse_hint(dict[str, Any])
|
|
hint_2 = parse_hint(dict[str, Any])
|
|
|
|
assert hint_1.origin == hint_2.origin
|
|
assert hint_1.allowed == hint_2.allowed
|