Attempt to temporarily fix #2
Some checks failed
Tests / test (3.10) (push) Failing after 23m0s
Tests / test (3.11) (push) Failing after 22m55s
Tests / test (3.8) (push) Failing after 22m56s
Tests / test (3.9) (push) Failing after 22m54s

This commit is contained in:
2023-11-24 23:52:50 +01:00
parent efedb2533b
commit 414f3966da
7 changed files with 68 additions and 21 deletions

View File

@@ -23,7 +23,7 @@ def sample_stop_id() -> str:
@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#"
return "1|12709|0|80"
@pytest.fixture()

View File

@@ -26,15 +26,14 @@ def test_him_search(api_client: Client):
)
# Does not work as it should yet
# def test_journey_detail(api_client: Client, sample_journey_id: str):
# assert (
# api_client.journey_detail(
# sample_journey_id,
# real_time_mode=enums.RealTimeMode.FULL,
# ),
# Journey,
# )
def test_journey_detail(api_client: Client, sample_journey_id: str):
assert (
api_client.journey_detail(
sample_journey_id,
real_time_mode=enums.RealTimeMode.FULL,
),
Journey,
)
def test_stop_by_coords(api_client: Client, sample_origin: List[str]):
@@ -62,9 +61,21 @@ def test_trip_find(
)
# Does not work as it should yet
# def test_trip_recon(api_client: Client):
# assert api_client.trip_recon()
def test_trip_recon(
api_client: Client, sample_origin: List[str], sample_destination: List[float]
):
assert isinstance(
api_client.trip_recon(
api_client.trip_find(
origin_coord_lat=sample_origin[0],
origin_coord_lon=sample_origin[1],
destination_coord_lat=sample_destination[0],
destination_coord_lon=sample_destination[1],
messages=True,
)[0],
)[0],
Trip,
)
def test_stop_by_name(api_client: Client):