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