forked from hove-io/transit_model
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ArnaudOggy/fare_conversion
Fares v2>v1 - Increased functional test coverage
- Loading branch information
Showing
14 changed files
with
25 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
ticket_id,ticket_price,ticket_currency,ticket_validity_start,ticket_validity_end | ||
OIF:ticket.1,3.14,EUR,20190101,20190630 | ||
OIF:ticket.1,3.14,EUR,20190101,20190331 | ||
OIF:ticket.1,3.15,EUR,20190401,20190630 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
ticket_use_id,ticket_id,max_transfers,boarding_time_limit,alighting_time_limit | ||
OIF:ticket-use.1,OIF:ticket.1,3,,120 | ||
OIF:ticket-use.2,OIF:ticket.1,0,, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
avant changement;après changement;début trajet;fin trajet;condition globale;clef ticket | ||
*;line=line:B42;stoparea=stop_area:CDG&nb_changes<1;stoparea=stop_area:NAT;;ticket-use.2 | ||
*;line=line:B42;stoparea=stop_area:NAT&nb_changes<1;stoparea=stop_area:CDG;;ticket-use.2 | ||
*;line=line:M1;stoparea=stop_area:NAT&nb_changes<1;stoparea=stop_area:CDG;;ticket-use.4 | ||
*;line=line:OIF:002002002:LICOIF829;nb_changes<1;;;OIF:ticket-use.2 | ||
*;network=network:OIF:101;line!=line:OIF:002002002:LICOIF829&nb_changes<4;duration<121;;OIF:ticket-use.1 | ||
*;network=network:OIF:102;line!=line:OIF:002002002:LICOIF829&nb_changes<4;duration<121;;OIF:ticket-use.1 | ||
*;network=network:TGN;nb_changes<1;;;ticket-use.1 | ||
*;network=network:TGN;;;;ticket-use.1 | ||
*;network=network:TGN;zone=ZoneParis&line!=line:B42&nb_changes<2&duration<31;zone=ZoneOffParis&duration<91;;ticket-use.3 | ||
network=network:OIF:101;network=network:OIF:101;ticket=OIF:ticket-use.1&line!=line:OIF:002002002:LICOIF829&nb_changes<4;duration<121;; | ||
network=network:OIF:101;network=network:OIF:102;ticket=OIF:ticket-use.1&line!=line:OIF:002002002:LICOIF829&nb_changes<4;duration<121;; | ||
network=network:OIF:102;network=network:OIF:101;ticket=OIF:ticket-use.1&line!=line:OIF:002002002:LICOIF829&nb_changes<4;duration<121;; | ||
network=network:OIF:102;network=network:OIF:102;ticket=OIF:ticket-use.1&line!=line:OIF:002002002:LICOIF829&nb_changes<4;duration<121;; | ||
network=network:TGN;network=network:TGN;ticket=ticket-use.1&;;; | ||
network=network:TGN;network=network:TGN;ticket=ticket-use.3&zone=ZoneParis&line!=line:B42&nb_changes<2&duration<31;zone=ZoneOffParis&duration<91;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
OIF:ticket-use.1;20190101;20190701;314;;;;centime | ||
OIF:ticket-use.1;20190101;20190401;314;;;;centime | ||
OIF:ticket-use.1;20190401;20190701;315;;;;centime | ||
OIF:ticket-use.2;20190101;20190401;314;;;;centime | ||
OIF:ticket-use.2;20190401;20190701;315;;;;centime | ||
ticket-use.1;20190101;20200101;90;;;;centime | ||
ticket-use.2;20190101;20200101;113;;;;centime | ||
ticket-use.4;20190101;20200101;116;;;;centime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/fixtures/merge-ntfs/output_merge_fares/ticket_use_restrictions.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
ticket_use_id,restriction_type,use_origin,use_destination | ||
ticket-use.2,OD,NAT,CDG | ||
ticket-use.2,OD,CDG,NAT | ||
ticket-use.3,zone,ZoneParis,ZoneOffParis | ||
ticket-use.4,OD,NAT,CDG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
ticket_use_id,ticket_id,max_transfers,boarding_time_limit,alighting_time_limit | ||
ticket-use.1,ticket.1,0,, | ||
ticket-use.1,ticket.1,,, | ||
ticket-use.2,ticket.2,0,, | ||
ticket-use.3,ticket.3,1,30,90 | ||
ticket-use.4,ticket.4,0,, | ||
OIF:ticket-use.1,OIF:ticket.1,3,,120 | ||
OIF:ticket-use.2,OIF:ticket.1,0,, |
4 changes: 3 additions & 1 deletion
4
tests/fixtures/merge-ntfs/output_merge_fares_only_one_farev2/fares.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
avant changement;après changement;début trajet;fin trajet;condition globale;clef ticket | ||
*;line=line:B42;stoparea=stop_area:CDG&nb_changes<1;stoparea=stop_area:NAT;;ticket-use.2 | ||
*;line=line:B42;stoparea=stop_area:NAT&nb_changes<1;stoparea=stop_area:CDG;;ticket-use.2 | ||
*;line=line:M1;stoparea=stop_area:NAT&nb_changes<1;stoparea=stop_area:CDG;;ticket-use.4 | ||
*;network=network:TGN;nb_changes<1;;;ticket-use.1 | ||
*;network=network:TGN;;;;ticket-use.1 | ||
*;network=network:TGN;zone=ZoneParis&line!=line:B42&nb_changes<2&duration<31;zone=ZoneOffParis&duration<91;;ticket-use.3 | ||
network=network:TGN;network=network:TGN;ticket=ticket-use.1&;;; | ||
network=network:TGN;network=network:TGN;ticket=ticket-use.3&zone=ZoneParis&line!=line:B42&nb_changes<2&duration<31;zone=ZoneOffParis&duration<91;; |
1 change: 1 addition & 0 deletions
1
tests/fixtures/merge-ntfs/output_merge_fares_only_one_farev2/ticket_use_restrictions.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
ticket_use_id,restriction_type,use_origin,use_destination | ||
ticket-use.2,OD,NAT,CDG | ||
ticket-use.2,OD,CDG,NAT | ||
ticket-use.3,zone,ZoneParis,ZoneOffParis | ||
ticket-use.4,OD,NAT,CDG |
2 changes: 1 addition & 1 deletion
2
tests/fixtures/merge-ntfs/output_merge_fares_only_one_farev2/ticket_uses.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
ticket_use_id,ticket_id,max_transfers,boarding_time_limit,alighting_time_limit | ||
ticket-use.1,ticket.1,0,, | ||
ticket-use.1,ticket.1,,, | ||
ticket-use.2,ticket.2,0,, | ||
ticket-use.3,ticket.3,1,30,90 | ||
ticket-use.4,ticket.4,0,, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
ticket_use_id,restriction_type,use_origin,use_destination | ||
ticket-use.2,OD,NAT,CDG | ||
ticket-use.2,OD,CDG,NAT | ||
ticket-use.3,zone,ZoneParis,ZoneOffParis | ||
ticket-use.4,OD,NAT,CDG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
ticket_use_id,ticket_id,max_transfers,boarding_time_limit,alighting_time_limit | ||
ticket-use.1,ticket.1,0,, | ||
ticket-use.1,ticket.1,,, | ||
ticket-use.2,ticket.2,0,, | ||
ticket-use.3,ticket.3,1,30,90 | ||
ticket-use.4,ticket.4,0,, |