umpirix/sdk/python/tests/test_typing.py
caelum0x 4847e35451 OpenJev: open-source typed decision service
Typed decision/classification service with an in-process gte-small ONNX
embedding engine and lexical fallback, JS/Python SDKs, adapters, and the
otsone model family. Apache-2.0 (sub-packages keep their MIT licenses).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 00:12:36 +03:00

34 lines
752 B
Python

import subprocess
import sys
from pathlib import Path
import pytest
ROOT = Path(__file__).resolve().parents[1]
FIXTURES = Path(__file__).with_name("typing")
@pytest.mark.parametrize(
"path",
sorted(FIXTURES.rglob("*.py")),
ids=lambda path: str(path.relative_to(FIXTURES)),
)
def test_public_typing(path: Path) -> None:
result = subprocess.run(
[
sys.executable,
"-m",
"pyrefly",
"check",
"--config",
str(ROOT / "pyrefly.toml"),
"--expectations",
str(path),
],
capture_output=True,
text=True,
check=False,
timeout=30,
)
assert result.returncode == 0, result.stdout + result.stderr