Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KItinerary
Commits
cac6f5be
Commit
cac6f5be
authored
Nov 09, 2020
by
Volker Krause
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add unit tests for SNCF barcode extraction
Forgot to commit those as part of the recent SNCF extractor fixes.
parent
93859f27
Pipeline
#40249
failed with stage
in 1 minute and 55 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
168 additions
and
0 deletions
+168
-0
autotests/extractordata/sncf/ticket-barcode-single-leg.txt
autotests/extractordata/sncf/ticket-barcode-single-leg.txt
+1
-0
autotests/extractordata/sncf/ticket-barcode-single-leg.txt.json
...sts/extractordata/sncf/ticket-barcode-single-leg.txt.json
+56
-0
autotests/extractordata/sncf/ticket-barcode-two-leg.txt
autotests/extractordata/sncf/ticket-barcode-two-leg.txt
+1
-0
autotests/extractordata/sncf/ticket-barcode-two-leg.txt.json
autotests/extractordata/sncf/ticket-barcode-two-leg.txt.json
+110
-0
No files found.
autotests/extractordata/sncf/ticket-barcode-single-leg.txt
0 → 100644
View file @
cac6f5be
i0CVXXX007123456789121101/01/1970FRXYTFRMPL0432131/070123456789012345678 DOE JOHN2CF000 00000
autotests/extractordata/sncf/ticket-barcode-single-leg.txt.json
0 → 100644
View file @
cac6f5be
[
{
"@context"
:
"http://schema.org"
,
"@type"
:
"TrainReservation"
,
"modifiedTime"
:
"2017-12-29T18:46:02+01:00"
,
"reservationFor"
:
{
"@type"
:
"TrainTrip"
,
"arrivalStation"
:
{
"@type"
:
"TrainStation"
,
"address"
:
{
"@type"
:
"PostalAddress"
,
"addressCountry"
:
"FR"
},
"geo"
:
{
"@type"
:
"GeoCoordinates"
,
"latitude"
:
43.60459899902344
,
"longitude"
:
3.881040096282959
},
"identifier"
:
"sncf:FRMPL"
,
"name"
:
"FRMPL"
},
"departureDay"
:
"2018-07-31"
,
"departureStation"
:
{
"@type"
:
"TrainStation"
,
"address"
:
{
"@type"
:
"PostalAddress"
,
"addressCountry"
:
"FR"
},
"geo"
:
{
"@type"
:
"GeoCoordinates"
,
"latitude"
:
43.61109924316406
,
"longitude"
:
1.4536099433898926
},
"identifier"
:
"sncf:FRXYT"
,
"name"
:
"FRXYT"
},
"trainNumber"
:
"04321"
},
"reservationNumber"
:
"XXX007"
,
"reservationStatus"
:
"http://schema.org/ReservationConfirmed"
,
"reservedTicket"
:
{
"@type"
:
"Ticket"
,
"ticketToken"
:
"aztecCode:i0CVXXX007123456789121101/01/1970FRXYTFRMPL0432131/070123456789012345678 DOE JOHN2CF000 00000
\n
"
,
"ticketedSeat"
:
{
"@type"
:
"Seat"
,
"seatingType"
:
"2"
}
},
"underName"
:
{
"@type"
:
"Person"
,
"familyName"
:
"DOE"
,
"givenName"
:
"JOHN"
,
"name"
:
"JOHN DOE"
}
}
]
autotests/extractordata/sncf/ticket-barcode-two-leg.txt
0 → 100644
View file @
cac6f5be
i0CVXXX007123456789121101/01/1970CHGVAFRAVG5432101/110123456789012345678 DOE JOHN2 1FRAVGFRXYT04321
autotests/extractordata/sncf/ticket-barcode-two-leg.txt.json
0 → 100644
View file @
cac6f5be
[
{
"@context"
:
"http://schema.org"
,
"@type"
:
"TrainReservation"
,
"modifiedTime"
:
"2017-12-29T18:46:02+01:00"
,
"reservationFor"
:
{
"@type"
:
"TrainTrip"
,
"arrivalStation"
:
{
"@type"
:
"TrainStation"
,
"address"
:
{
"@type"
:
"PostalAddress"
,
"addressCountry"
:
"FR"
},
"geo"
:
{
"@type"
:
"GeoCoordinates"
,
"latitude"
:
43.92169952392578
,
"longitude"
:
4.785830020904541
},
"identifier"
:
"sncf:FRAVG"
,
"name"
:
"FRAVG"
},
"departureDay"
:
"2018-11-01"
,
"departureStation"
:
{
"@type"
:
"TrainStation"
,
"address"
:
{
"@type"
:
"PostalAddress"
,
"addressCountry"
:
"CH"
},
"geo"
:
{
"@type"
:
"GeoCoordinates"
,
"latitude"
:
46.210201263427734
,
"longitude"
:
6.142449855804443
},
"identifier"
:
"sncf:CHGVA"
,
"name"
:
"CHGVA"
},
"trainNumber"
:
"54321"
},
"reservationNumber"
:
"XXX007"
,
"reservationStatus"
:
"http://schema.org/ReservationConfirmed"
,
"reservedTicket"
:
{
"@type"
:
"Ticket"
,
"ticketToken"
:
"aztecCode:i0CVXXX007123456789121101/01/1970CHGVAFRAVG5432101/110123456789012345678 DOE JOHN2 1FRAVGFRXYT04321
\n
"
,
"ticketedSeat"
:
{
"@type"
:
"Seat"
,
"seatingType"
:
"2"
}
},
"underName"
:
{
"@type"
:
"Person"
,
"familyName"
:
"DOE"
,
"givenName"
:
"JOHN"
,
"name"
:
"JOHN DOE"
}
},
{
"@context"
:
"http://schema.org"
,
"@type"
:
"TrainReservation"
,
"modifiedTime"
:
"2017-12-29T18:46:02+01:00"
,
"reservationFor"
:
{
"@type"
:
"TrainTrip"
,
"arrivalStation"
:
{
"@type"
:
"TrainStation"
,
"address"
:
{
"@type"
:
"PostalAddress"
,
"addressCountry"
:
"FR"
},
"geo"
:
{
"@type"
:
"GeoCoordinates"
,
"latitude"
:
43.61109924316406
,
"longitude"
:
1.4536099433898926
},
"identifier"
:
"sncf:FRXYT"
,
"name"
:
"FRXYT"
},
"departureDay"
:
"2018-11-01"
,
"departureStation"
:
{
"@type"
:
"TrainStation"
,
"address"
:
{
"@type"
:
"PostalAddress"
,
"addressCountry"
:
"FR"
},
"geo"
:
{
"@type"
:
"GeoCoordinates"
,
"latitude"
:
43.92169952392578
,
"longitude"
:
4.785830020904541
},
"identifier"
:
"sncf:FRAVG"
,
"name"
:
"FRAVG"
},
"trainNumber"
:
"04321"
},
"reservationNumber"
:
"XXX007"
,
"reservationStatus"
:
"http://schema.org/ReservationConfirmed"
,
"reservedTicket"
:
{
"@type"
:
"Ticket"
,
"ticketToken"
:
"aztecCode:i0CVXXX007123456789121101/01/1970CHGVAFRAVG5432101/110123456789012345678 DOE JOHN2 1FRAVGFRXYT04321
\n
"
,
"ticketedSeat"
:
{
"@type"
:
"Seat"
,
"seatingType"
:
"1"
}
},
"underName"
:
{
"@type"
:
"Person"
,
"familyName"
:
"DOE"
,
"givenName"
:
"JOHN"
,
"name"
:
"JOHN DOE"
}
}
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment