-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add module tests for updating raptor transit data #7129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add module tests for updating raptor transit data #7129
Conversation
| @Test | ||
| @Disabled | ||
| @Disabled( | ||
| "Can be enabled when https://github.com/opentripplanner/OpenTripPlanner/pull/6280 is merged" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@flaktack You will be interested in this.
f2f046c to
d87c22e
Compare
d87c22e to
77609f2
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #7129 +/- ##
=============================================
+ Coverage 72.05% 72.09% +0.03%
- Complexity 20679 20692 +13
=============================================
Files 2242 2244 +2
Lines 83801 83899 +98
Branches 8348 8347 -1
=============================================
+ Hits 60385 60486 +101
+ Misses 20488 20483 -5
- Partials 2928 2930 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
a3a5341 to
3088b0b
Compare
3088b0b to
35f611c
Compare
409d80e to
169f760
Compare
application/src/test/java/org/opentripplanner/transit/model/_data/TransitTestEnvironment.java
Outdated
Show resolved
Hide resolved
277c99a to
96c0c76
Compare
| "Can be enabled when https://github.com/opentripplanner/OpenTripPlanner/pull/6280 is merged" | ||
| ) | ||
| void addedThenRemoved() { | ||
| assertThat(env.raptorData().summarizePatterns()).containsExactly("F:Pattern1"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will fail since the format is %s[%s]?
Should the expectation be "F:Pattern1[SCHEDULED]" ?
Possibly same issue in AssignedStopIdsTest.reuseRealtimeTripPatterns and AssignedStopIdsTest.reuseRealtimeTripPatternsOnDifferentServiceDates()?
Summary
In #6280 @miklcct is adding some code that touches the
TimetableSnapshot. I believe, that given the current constraints, this is acceptable, but we should probably add some tests for the current behaviour of the SIRI updaters beforehand.This PR adds them. It builds on the pattern established by @habrahamsson-skanetrafiken: returning fetchers from the environment which can then be further queried.
Unit tests
This PR is only about unit tests.
Documentation
Javadoc.