chzzk #1
1 changed files with 0 additions and 3 deletions
commit
596769874f
|
|
@ -4,7 +4,6 @@ from pathlib import Path
|
||||||
import pydantic
|
import pydantic
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from chzzk.schemas import ChzzkApiResponseV1
|
|
||||||
from chzzk.schemas import ChzzkApiResponseV2
|
from chzzk.schemas import ChzzkApiResponseV2
|
||||||
|
|
||||||
TESTS_DIR = Path(__file__).parent
|
TESTS_DIR = Path(__file__).parent
|
||||||
|
|
@ -13,7 +12,6 @@ TESTS_DIR = Path(__file__).parent
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
("fname", "data_model"),
|
("fname", "data_model"),
|
||||||
[
|
[
|
||||||
("v1_905.json", ChzzkApiResponseV1),
|
|
||||||
("v2_905.json", ChzzkApiResponseV2),
|
("v2_905.json", ChzzkApiResponseV2),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
@ -29,7 +27,6 @@ def test_chzzk_schema_strict(fname: str, data_model: type) -> None:
|
||||||
("fname", "data_model"),
|
("fname", "data_model"),
|
||||||
[
|
[
|
||||||
("v1_905.json", ChzzkApiResponseV2),
|
("v1_905.json", ChzzkApiResponseV2),
|
||||||
("v2_905.json", ChzzkApiResponseV1),
|
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
def test_chzzk_schema_cross_fail(fname: str, data_model: type) -> None:
|
def test_chzzk_schema_cross_fail(fname: str, data_model: type) -> None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue