hack-house/.venv/lib/python3.12/site-packages/tests/extra/test_parse_hint.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

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