-
Notifications
You must be signed in to change notification settings - Fork 100
Add more summary tests #1107
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
base: main
Are you sure you want to change the base?
Add more summary tests #1107
Conversation
30fc832 to
22f315f
Compare
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.
Pull request overview
This pull request adds comprehensive test coverage for the Summary/rd_sum functionality in preparation for future refactoring. The changes introduce approximately 1000 lines of new tests covering various aspects of summary file handling.
Changes:
- Adds a
create_summaryhelper function to simplify test data generation - Implements 50+ new test functions covering Summary class methods, properties, and static methods
- Adds tests for reading, writing, interpolation, time handling, pandas integration, and CSV export
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| num_keywords=1 + len(summary_keys), | ||
| restart=" ", | ||
| keywords=["TIME "] + list(summary_keys), | ||
| well_names=[":+:+:+:+"] + [":+:+:+:+"] * len(summary_keys), |
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.
Could you briefly explain what these well names mean?
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 is called "DUMMY_WELL" in other parts of the code.
f55f597 to
22ccbd7
Compare
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.
Pull request overview
Copilot reviewed 30 out of 30 changed files in this pull request and generated 13 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
458f11d to
6ec3447
Compare
6ec3447 to
7246f99
Compare
We would like to be able to refactor rd_sum in the future. A first good step in that direction is adding more tests.