37 lines
815 B
Python
37 lines
815 B
Python
from os import environ
|
|
from typing import List
|
|
|
|
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)
|
|
|
|
|
|
@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:
|
|
return "2|#VN#1#ST#1664906549#PI#0#ZI#12709#TA#0#DA#61022#1S#3008007#1T#1248#LS#3008043#LT#1323#PU#80#RT#1#CA#1aE#ZE#101#ZB#Bus 101 #PC#6#FR#3008007#FT#1248#TO#3008043#TT#1323#"
|
|
|
|
|
|
@pytest.fixture()
|
|
def sample_origin() -> List[str]:
|
|
return ["50.084659", "8.785948"]
|
|
|
|
|
|
@pytest.fixture()
|
|
def sample_destination() -> List[float]:
|
|
return [50.1233048, 8.6129742]
|