Files
wehub-resource-sync e4dcfc49aa
Tests / Import Check (Python 3.13) (push) Has been cancelled
Tests / Import Check (Python 3.14) (push) Has been cancelled
Tests / Python Tests (Python 3.11) (push) Has been cancelled
Tests / Python Tests (Python 3.12) (push) Has been cancelled
Tests / Python Tests (Python 3.14) (push) Has been cancelled
Tests / Test Summary (push) Has been cancelled
Tests / Lint and Format (push) Has been cancelled
Tests / Web Node Tests (push) Has been cancelled
Tests / Import Check (Python 3.11) (push) Has been cancelled
Tests / Import Check (Python 3.12) (push) Has been cancelled
Tests / Python Tests (Python 3.13) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:00:43 +08:00

26 lines
749 B
Python

from __future__ import annotations
import pytest
from deeptutor.agents.math_animator.request_config import (
validate_math_animator_request_config,
)
def test_validate_math_animator_request_config_defaults() -> None:
config = validate_math_animator_request_config(None)
assert config.output_mode == "video"
assert config.quality == "medium"
assert config.style_hint == ""
def test_validate_math_animator_request_config_rejects_unknown_fields() -> None:
with pytest.raises(ValueError, match="Invalid math animator config"):
validate_math_animator_request_config(
{
"output_mode": "image",
"quality": "high",
"unexpected": True,
}
)