election-game/backend/data/pipeline/tests/people/conftest.py

17 lines
280 B
Python
Raw Normal View History

from __future__ import annotations
from pathlib import Path
import pytest
FIXTURES = Path(__file__).parent / "fixtures"
@pytest.fixture
def fixtures() -> Path:
return FIXTURES
def read_fixture(name: str) -> str:
return (FIXTURES / name).read_text(encoding="utf-8")