PythonRMV/tests/conftest.py

37 lines
659 B
Python
Raw Normal View History

2023-11-20 00:05:48 +02:00
from os import environ
2023-11-24 14:35:47 +02:00
from typing import List
2023-11-20 00:05:48 +02:00
import pytest
from pyrmv import Client
@pytest.fixture()
def api_token() -> str:
return environ.get("RMV_TOKEN")
@pytest.fixture()
def api_client(api_token: str) -> Client:
return Client(api_token)
2023-11-24 14:35:47 +02:00
@pytest.fixture()
def sample_stop_id() -> str:
return "A=1@O=Frankfurt (Main) Taunusanlage@X=8668765@Y=50113478@U=80@L=3000011@"
@pytest.fixture()
def sample_journey_id() -> str:
2023-11-25 00:52:50 +02:00
return "1|12709|0|80"
2023-11-24 14:35:47 +02:00
@pytest.fixture()
def sample_origin() -> List[str]:
return ["50.084659", "8.785948"]
@pytest.fixture()
def sample_destination() -> List[float]:
return [50.1233048, 8.6129742]