f1-telemetry/tests/conftest.py
Andrew Pimenov c1ee2f82e4 add ACC (GT3/GT4) support
- game_of() + load_prompt() with acc→f1 fallback in report_common
- technique/setup/race: skip ERS/setup sections for ACC; compare: routes prompt
- --game {auto,f1,acc} CLI flag
- 8 ACC prompt files (ru/en × 4 modes)
- GUI: ttk.Notebook F1 22/ACC tabs, isolated state, game-mismatch warning
- rename: normalise ACC full-word events to compact tokens (Practice→P, Qualifying→Q, Race→R, Hotlap→HL, Hotstint→HS)
- tests: ACC fixture + 9 new tests (87 total); all F1 regressions green
- docs: README + ARCHITECTURE bilingual updates
2026-06-19 16:29:52 +03:00

30 lines
629 B
Python

import os
import pytest
from telemetry.parser import load_lap
_FIXTURES = os.path.join(os.path.dirname(__file__), "fixtures")
@pytest.fixture(scope="session")
def sample_path():
return os.path.join(_FIXTURES, "sample_lap.csv")
@pytest.fixture(scope="session")
def truncated_path():
return os.path.join(_FIXTURES, "truncated.csv")
@pytest.fixture(scope="session")
def sample_lap(sample_path):
return load_lap(sample_path)
@pytest.fixture(scope="session")
def acc_path():
return os.path.join(_FIXTURES, "acc_lap.csv")
@pytest.fixture(scope="session")
def acc_lap(acc_path):
return load_lap(acc_path)