From 0f89754427b421c231dcfb227348d96a6d905d06 Mon Sep 17 00:00:00 2001 From: Youness CHRIFI ALAOUI Date: Thu, 29 Aug 2024 15:01:44 +0200 Subject: [PATCH] test --- tests/conftest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 719207f7b67..e298654e4e6 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -159,7 +159,7 @@ def west_to_south_east_path(small_infra: Infra, fast_rolling_stock: int) -> Iter """west_to_south_east_path screenshot in `tests/README.md`""" requests.post(f"{EDITOAST_URL}infra/{small_infra.id}/load").raise_for_status() response = requests.post( - f"{EDITOAST_URL}/v2/infra/{small_infra.id}/pathfinding/blocks", + f"{EDITOAST_URL}v2/infra/{small_infra.id}/pathfinding/blocks", json={ "path_items": [ {"offset": 837034, "track": "TA2"}, @@ -169,8 +169,12 @@ def west_to_south_east_path(small_infra: Infra, fast_rolling_stock: int) -> Iter "rolling_stock_loading_gauge": "G1", "rolling_stock_supported_electrifications": [], "rolling_stock_supported_signaling_systems": ["BAL", "BAPR", "TVM300", "TVM430"], + "rolling_stock_maximum_speed": 200, + "rolling_stock_length":100000 }, ) + print("ok") + print(response.content) yield TrainPath(**response.json())