Skip to content

Commit

Permalink
Apply 'sanitize' to 'enrich-with-hellogo-fares'
Browse files Browse the repository at this point in the history
  • Loading branch information
woshilapin authored and mergify-bot committed Nov 29, 2019
1 parent aebc3a1 commit e8ce2ba
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/enrich_with_hellogo_fares.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ fn test_read_global_with_prefix() {
Path::new("./tests/fixtures/enrich-with-hellogo-fares/input/hellogo_fares_ok"),
)
.unwrap();
collections.sanitize().unwrap();
let new_model = Model::new(collections).unwrap();
transit_model::ntfs::write(&new_model, path, get_test_datetime()).unwrap();
compare_output_dir_with_expected(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
route_id,route_name,line_id
NTM:B42F,Gare de Lyon - Montparnasse,NTM:B42
NTM:T42F,Gare de Lyon - Montparnasse,NTM:T42
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
trip_id,stop_sequence,stop_id,arrival_time,departure_time,datetime_estimated
NTM:B42F1,10,NTM:sp:1,10:10:00,10:10:00,
NTM:B42F1,20,NTM:sp:2,10:20:00,10:20:00,
NTM:B42F1,30,NTM:sp:3,10:30:00,10:30:00,
NTM:B42F1,40,NTM:sp:4,10:40:00,10:40:00,
NTM:B42F1,50,NTM:sp:5,10:50:00,10:50:00,
NTM:B42F1,60,NTM:sp:6,11:00:00,11:00:00,
NTM:B42F1,70,NTM:sp:7,11:10:00,11:10:00,
NTM:B42F1,80,NTM:sp:8,11:20:00,11:20:00,
NTM:B42F1,90,NTM:sp:9,11:30:00,11:30:00,
NTM:B42F1,100,NTM:sp:10,11:40:00,11:40:00,
NTM:B42F1,110,NTM:sp:11,11:50:00,11:50:00,
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
route_id,service_id,trip_id,company_id,physical_mode_id,dataset_id
NTM:B42F,NTM:service:1,NTM:B42F1,NTM:TGC,Bus,NTM:TGDS
NTM:T42F,NTM:service:1,NTM:T42F1,NTM:TGC,Train,NTM:TGDS
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
route_id,route_name,line_id
B42F,Gare de Lyon - Montparnasse,B42
T42F,Gare de Lyon - Montparnasse,T42
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
trip_id,stop_sequence,stop_id,arrival_time,departure_time,datetime_estimated
B42F1,10,sp:1,10:10:00,10:10:00,
B42F1,20,sp:2,10:20:00,10:20:00,
B42F1,30,sp:3,10:30:00,10:30:00,
B42F1,40,sp:4,10:40:00,10:40:00,
B42F1,50,sp:5,10:50:00,10:50:00,
B42F1,60,sp:6,11:00:00,11:00:00,
B42F1,70,sp:7,11:10:00,11:10:00,
B42F1,80,sp:8,11:20:00,11:20:00,
B42F1,90,sp:9,11:30:00,11:30:00,
B42F1,100,sp:10,11:40:00,11:40:00,
B42F1,110,sp:11,11:50:00,11:50:00,
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
route_id,service_id,trip_id,company_id,physical_mode_id,dataset_id
B42F,service:1,B42F1,TGC,Bus,TGDS
T42F,service:1,T42F1,TGC,Train,TGDS

0 comments on commit e8ce2ba

Please sign in to comment.