mirror of
https://github.com/Horizontal42/f1-telemetry.git
synced 2026-11-10 16:32:03 +03:00
- 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
30 lines
629 B
Python
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)
|