fix train_api IDs, mock search_fixtures function and arg rename

This commit is contained in:
Steve Androulakis
2025-02-25 07:16:48 -06:00
parent ee7fc3e7a2
commit 72fddd0130
4 changed files with 103 additions and 13 deletions

View File

@@ -68,7 +68,7 @@ class TrainServer(BaseHTTPRequestHandler):
arr_hour = arr_hour % 24
journey = {
"id": "T%s".format(random.randint(1000, 9999)),
"id": "T{}".format(random.randint(1000, 9999)),
"type": "outbound",
"departure": origin,
"arrival": destination,
@@ -101,7 +101,7 @@ class TrainServer(BaseHTTPRequestHandler):
arr_hour = arr_hour % 24
journey = {
"id": "T%s".format(random.randint(1000, 9999)),
"id": "T{}".format(random.randint(1000, 9999)),
"type": "return",
"departure": destination,
"arrival": origin,