-
Notifications
You must be signed in to change notification settings - Fork 1
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
Converted print statements to errors/warnings; updated tests #137
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## dev #137 +/- ##
==========================================
+ Coverage 87.27% 87.67% +0.40%
==========================================
Files 11 11
Lines 896 917 +21
==========================================
+ Hits 782 804 +22
+ Misses 114 113 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
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.
All changes LGTM - thanks for raising this PR!
I have checked the individual changes from prints to warnings/errors and they are working as expected. I'm also OK with moving the clean_feed()
/stop_id
print to error change to #74 - makes a lot of sense to tackle that there. Unit tests updated to adequately cover the changes made in the source code and are performing as expected.
Finally, all unit tests pass with no new warnings (all previously and the changes here). Happy to merge into dev
.
* Converted print statements to errors/warnings; updated tests * fix: Convert error to warning * test: reinstate not impletmented extension test; added check for warning * test: removed duplicate .svg test --------- Co-authored-by: Ethan Moss <[email protected]> 87e63f0
Description
This PR removes the use of print statements across the GTFS module where errors can be used in their place.
Fixes #76
Motivation and Context
The motivation of this PR is to improve consistency across the package and to also ensure that any invalid user inputs are being handled correctly.
Type of change
How Has This Been Tested?
Notes:
Test configuration details:
Advice for reviewer
I have decided not to remove the print statement in clean_feed() as it can be addressed in #74 . I am also a bit weary about making changes to this function before the additional function calls included in the fast travel validation PR are merged into dev.
Checklist:
Additional comments