Skip to content
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

test(loaders): Add test for load_travel_times #125 #169

Merged
merged 5 commits into from
Oct 26, 2023

Conversation

madhavmk
Copy link
Collaborator

* Add unittest coverage for loaders.py load_travel_times()
* Issue -> seafloor-geodesy#125
@codecov
Copy link

codecov bot commented Oct 16, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c0a7e30) 39.12% compared to head (dc0c5ab) 41.31%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #169      +/-   ##
==========================================
+ Coverage   39.12%   41.31%   +2.18%     
==========================================
  Files          16       16              
  Lines         823      823              
==========================================
+ Hits          322      340      +18     
+ Misses        501      483      -18     

see 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

tests/data/config.yaml Outdated Show resolved Hide resolved
tests/test_loaders.py Outdated Show resolved Hide resolved
tests/test_loaders.py Outdated Show resolved Hide resolved
@lsetiawan lsetiawan assigned lsetiawan and madhavmk and unassigned lsetiawan Oct 18, 2023
* Split test_load_travel_times() into 2 smaller unittests
@madhavmk
Copy link
Collaborator Author

Thanks for the PR suggestions @lsetiawan . I have resolved them, and updated the PR.

tests/test_loaders.py Outdated Show resolved Hide resolved
tests/test_loaders.py Outdated Show resolved Hide resolved
Copy link
Member

@lsetiawan lsetiawan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great @madhavmk. I think you've got all the pieces to make this test fully complete.

I do have change request to make to ensure that the code follows the DRY (Don't Repeat Yourself) principle of software development. Let me know if you have any questions. Thanks!

@madhavmk
Copy link
Collaborator Author

madhavmk commented Oct 25, 2023

This is great @madhavmk. I think you've got all the pieces to make this test fully complete.

I do have change request to make to ensure that the code follows the DRY (Don't Repeat Yourself) principle of software development. Let me know if you have any questions. Thanks!

Thanks for the review @lsetiawan . You were right, the code blocks were repeated twice for no reason. I've made the requested changes, and will keep the DRY principles in mind in the future too!!

Regarding creating a new load_configuration() fixture, I was planning on incorporating that change in Issue #127 (Because this PR is too big already)

Copy link
Member

@lsetiawan lsetiawan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this and improving it! Great work! I think this is ready to be merged now 😄

@lsetiawan lsetiawan merged commit 69fc8d3 into seafloor-geodesy:main Oct 26, 2023
5 checks passed
@madhavmk madhavmk deleted the issue_125 branch May 14, 2024 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants