Remove references to ChzzkApiResponseV1 in schema tests and update test cases to use ChzzkApiResponseV2
All checks were successful
Deploy to Server / deploy (pull_request) Successful in 13s
Deploy to Server / deploy (push) Successful in 21s

This commit is contained in:
Joakim Hellsén 2026-04-01 04:05:59 +02:00
commit 596769874f
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk

View file

@ -4,7 +4,6 @@ from pathlib import Path
import pydantic
import pytest
from chzzk.schemas import ChzzkApiResponseV1
from chzzk.schemas import ChzzkApiResponseV2
TESTS_DIR = Path(__file__).parent
@ -13,7 +12,6 @@ TESTS_DIR = Path(__file__).parent
@pytest.mark.parametrize(
("fname", "data_model"),
[
("v1_905.json", ChzzkApiResponseV1),
("v2_905.json", ChzzkApiResponseV2),
],
)
@ -29,7 +27,6 @@ def test_chzzk_schema_strict(fname: str, data_model: type) -> None:
("fname", "data_model"),
[
("v1_905.json", ChzzkApiResponseV2),
("v2_905.json", ChzzkApiResponseV1),
],
)
def test_chzzk_schema_cross_fail(fname: str, data_model: type) -> None: