예제 #1
0
def test_event_parsing(event_name: str, schema: BaseModel) -> None:
    for fixture_path in (Path(__file__).parent / "test" / "fixtures" /
                         "events" / event_name).rglob("*.json"):
        schema.parse_file(fixture_path)
예제 #2
0
def test_event_parsing(event: BaseModel, file_name: str) -> None:
    event.parse_file(Path(__file__).parent / "fixtures" / file_name)