2929
3030feeds = [
3131 {
32- # 1539 stops, NZ, 1 location
32+ # 0. 1539 stops, NZ, 1 location
3333 "stable_id" : "local-test-gbfs-flamingo_auckland" ,
3434 "station_information_url" : "https://data.rideflamingo.com/gbfs/3/auckland/station_information.json" ,
3535 "vehicle_status_url" : "https://data.rideflamingo.com/gbfs/3/auckland/vehicle_status.json" ,
3636 "data_type" : "gbfs" ,
3737 },
3838 {
39- # 11777 stops, JP, 241 locations
39+ # 1. 11777 stops, JP, 241 locations
4040 "stable_id" : "local-test-gbfs-hellocycling" ,
4141 "station_information_url" : "https://api-public.odpt.org/api/v4/gbfs/hellocycling/station_information.json" ,
4242 "data_type" : "gbfs" ,
4343 },
4444 {
45- # 308611, UK aggregated, 225 locations
45+ # 2. 308611, UK aggregated, 225 locations
4646 "stable_id" : "local-test-2014" ,
4747 "stops_url" : "https://storage.googleapis.com/mobilitydata-datasets-prod/mdb-2014/"
4848 "mdb-2014-202508120303/extracted/stops.txt" ,
4949 "data_type" : "gtfs" ,
5050 },
5151 {
52- # 663 stops, Europe, 334 locations
52+ # 3. 663 stops, Europe, 334 locations
5353 "stable_id" : "local-test-1139" ,
5454 "stops_url" : "https://storage.googleapis.com/mobilitydata-datasets-prod/mdb-1139/"
5555 "mdb-1139-202406071559/stops.txt" ,
5656 "data_type" : "gtfs" ,
5757 },
5858 {
59- # 10985 stops, Spain, duplicate key error(https://github.com/MobilityData/mobility-feed-api/issues/1289)
59+ # 4. 10985 stops, Spain, duplicate key error(https://github.com/MobilityData/mobility-feed-api/issues/1289)
6060 "stable_id" : "local-test-gtfs-mdb-2825" ,
6161 "stops_url" : "https://storage.googleapis.com/mobilitydata-datasets-prod/mdb-2825/"
6262 "mdb-2825-202508181628/extracted/stops.txt" ,
6363 "data_type" : "gtfs" ,
6464 },
6565]
66+ run_with_feed_index = (
67+ 4 # Set to an integer index to run with a specific feed from the list above
68+ )
69+
6670
6771# Load environment variables from .env.local
6872load_dotenv (dotenv_path = ".env.local" )
@@ -218,7 +222,7 @@ def create_test_data(feed_stable_id: str, feed_dict: Dict, db_session: Session =
218222
219223 strategy = ReverseGeocodingStrategy .PER_POLYGON
220224
221- feed_dict = feeds [3 ]
225+ feed_dict = feeds [run_with_feed_index ]
222226 feed_stable_id = feed_dict ["stable_id" ]
223227 # create test data in the database if does not exist
224228 create_test_data (feed_stable_id = feed_stable_id , feed_dict = feed_dict )
@@ -237,7 +241,7 @@ def create_test_data(feed_stable_id: str, feed_dict: Dict, db_session: Session =
237241 "stops_url" : f"http://{ HOST } :{ PORT } /{ BUCKET_NAME } /{ feed_stable_id } /stops.txt" ,
238242 "strategy" : str (strategy .value ),
239243 "data_type" : feed_dict ["data_type" ],
240- "use_cache" : False ,
244+ # "use_cache": False,
241245 "public" : False ,
242246 "maximum_executions" : 1000 ,
243247 }
0 commit comments