Commit graph

56 commits

Author SHA1 Message Date
Jannis R
3ade1af7a2 basic tests for arrivals 2018-06-26 18:13:41 +02:00
Jannis R
ebe4fa64d8 opt.passedStations -> opt.stopovers 💥 2018-06-19 08:23:49 +02:00
Jannis R
b419477a7d
merge next into tests-rewrite 2018-06-10 14:57:51 +02:00
Jannis R
46c05eba05 adapt tests to 3c9c5cb 2018-06-10 14:47:29 +02:00
Jannis R
0136189aa4
tests: fix isRoughlyEqual calls 2018-06-07 12:59:50 +02:00
Jannis R
938195753c
merge next into tests-rewrite 2018-05-31 14:00:58 +02:00
Jannis R
a59b340d67 adapt tests to 1c467cd 2018-05-30 16:39:51 +02:00
Jannis R
a17123401d
fix tests failing because of weird endpoints
- DB: `journeyLeg()` sometimes doesn't give the `direction` #49
- nah.sh: `departures()` at "Kiel Hbf" includes neighboring stations
- ÖBB: the endpoint always returns IDs of individual stops

Although these hacks make the tests less strict, we will finally be
able to use the more thorough tests from the `tests-rewrite` branch.
2018-05-30 15:51:59 +02:00
Jannis R
4d908e1f72
tests: fix isRoughEqual call 🐛, minor change 2018-05-14 00:13:11 +02:00
Jannis R
2ca7e64fd5
journeys detour tests: use helper fn 2018-05-14 00:13:09 +02:00
Jannis R
c769638005
add missing test helper fn, add todos, clean up 2018-04-25 13:24:27 +02:00
Jannis R
fecd2aefc0
journeys fails with no product tests: use helper fn 2018-04-25 13:23:53 +02:00
Jannis R
cb5e01ed5b
departures tests: use helper fn 2018-04-24 18:16:59 +02:00
Jannis R
9501dab9f4
journeys from station to POI tests: use helper fn 2018-04-24 18:16:52 +02:00
Jannis R
1018369576
journeys from station to address tests: use helper fn 2018-04-24 15:49:54 +02:00
Jannis R
6818635ee4
earlier/later journeys test: use helper fn 2018-04-24 15:28:36 +02:00
Jannis R
63e303b6f8
journeys from station to station test: use helper fn 2018-04-23 15:45:20 +02:00
Jannis R
e87ccf5a3b
DB: add currency to price 🐛, enable journeyLeg 2018-04-19 15:21:49 +02:00
Jannis R
46ce4bbbe0
DB tests: use new validators 2018-04-19 15:21:46 +02:00
Jannis R
486929acc7
tests: move util, co, validate-line-without-mode into lib 2018-04-18 16:16:31 +02:00
Jannis R
41b574c468
tests: move assertValidStationProducts into assertValidStation 2018-04-18 16:12:59 +02:00
Jannis R
4cba773eb0
adapt tests to 0e80be0 2018-03-21 01:55:53 +01:00
Jannis R
bc51d257fd
adapt tests to new products markup 2018-03-16 17:15:09 +01:00
Jannis R
94bbe2361b
products[].product -> products[].id 2018-03-16 17:15:09 +01:00
Julius Tens
361758c578 clarify code comments 2018-03-16 15:01:51 +01:00
Julius Tens
803b4573c1 clarify code comments 2018-03-16 15:01:51 +01:00
Julius Tens
429d0d1f0c update db,vbb via tests 2018-03-16 15:01:51 +01:00
Jannis R
848c2a2e6f DB, VBB: proper via tests 2018-03-16 15:01:51 +01:00
Jannis R
73c419fadb
fix products parsing 🐛, fix tests for it 2018-03-13 03:23:03 +01:00
Jannis R
c835467d85 beforeJourneys -> earlierThan, afterJourneys -> laterThan 2018-03-05 20:49:22 +01:00
Jannis R
88c511da27 earlierJourneysRef -> earlierRef, laterJourneysRef -> laterRef 2018-03-05 20:49:22 +01:00
Jannis R
fe7822883e beforeJourneys/afterJourneys: more tests 2018-03-05 20:49:22 +01:00
Jannis R
fd8eb92806
journeys: add journey.type 🐛
To make it FPTF-compliant.
2018-03-02 00:35:55 +01:00
Jannis R
031769b769
fix build 💚
Apparently, ÖBB doesn't have info about the lines of a station.
2018-01-26 17:46:10 +01:00
Jannis R
b79c2387dd
location method: implementation 2018-01-26 17:23:58 +01:00
Jannis R
f19a66df8a
use coroutine from Babel 2018-01-23 01:49:41 +01:00
Jannis R
20a2c8de94
fix via 🐛, add tests 2018-01-19 16:58:39 +01:00
Jannis R
0e1bc5e399
merge oebb into master 2018-01-07 17:13:51 +01:00
Jannis R
508ff9fc72
nearby: lat & lon -> location object 2018-01-05 14:55:34 +01:00
Jannis R
75513aa0f7
departures: accept station objects 🐛
As mentioned in the docs.
2018-01-04 16:19:43 +01:00
Julius Tens
66d869a3eb make when timezone- and local-independent 2017-12-28 22:57:22 +01:00
Jannis R
c02983492b
docs, tests: rename journey.parts -> journey.legs 📝 2017-12-28 17:14:53 +01:00
Jannis R
0b37e62e09
fix for 3811b45 🐛 2017-12-12 23:24:55 +01:00
Jannis R
024aa0e948
deal with some todos, add more 2017-12-12 23:15:06 +01:00
Jannis R
a2fa56edc1
more bugfixes 🐛 2017-12-11 20:04:32 +01:00
Jannis R
608a91989f
bugfixes 🐛, even more todos 2017-12-11 19:40:46 +01:00
Jannis R
3811b4553c
FPTF location objects
see public-transport/friendly-public-transport-format@6481dee
2017-12-11 19:25:30 +01:00
Jannis R
3c9c8433dc
DB: find cheapest price 2017-12-11 16:06:37 +01:00
Jannis R
3ea4fd3e40
bugfixes 🐛, rename dep.ref -> dep.journeyId 2017-12-11 15:20:50 +01:00
Jannis R
d77c450d11
fix products parsing 🐛, minor changes 2017-12-11 15:08:11 +01:00