Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
younesschrifi committed Aug 29, 2024
1 parent e2c7dbf commit 0f89754
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand All @@ -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())


Expand Down

0 comments on commit 0f89754

Please sign in to comment.