Skip to content

Additional tests.#17

Merged
mairanteodoro merged 68 commits intospacetelescope:mainfrom
mairanteodoro:RCAL-1039-test-updates
May 5, 2025
Merged

Additional tests.#17
mairanteodoro merged 68 commits intospacetelescope:mainfrom
mairanteodoro:RCAL-1039-test-updates

Conversation

@mairanteodoro
Copy link
Collaborator

This PR adds improves code-testing coverage.

@mairanteodoro
Copy link
Collaborator Author

mairanteodoro commented May 1, 2025

This PR will remain in draft version until a solution to the codecov issue emerges.
@schlafly We can go ahead and review this PR for now. We can come back to the coverage reporting issue later on.

mairanteodoro and others added 23 commits May 2, 2025 09:40
Co-authored-by: Eddie Schlafly <eschlafly@gmail.com>
Co-authored-by: Eddie Schlafly <eschlafly@gmail.com>
…e when necessary. (spacetelescope#14)

* Implement check for previously created model file.

* Style check fixes.
* Implement logger for roman_photoz.

* Prevent logger from writing to file.

* Resolve conflicts.
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@mairanteodoro mairanteodoro marked this pull request as ready for review May 2, 2025 20:26
@mairanteodoro mairanteodoro requested a review from schlafly May 2, 2025 20:26
Copy link
Collaborator

@schlafly schlafly left a comment

Choose a reason for hiding this comment

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

Thanks, this looks fine.

I'll note that to my sensibilities a lot of the tests relying on patching aren't testing very much. "assert_called_once_with" asserts just don't seem to me to be very useful tests; I'd much rather see minimal data included and processed correctly or something. And as we have discussed, let's try to get a real test in with some minimal data where some real catalog gets processed and passed to lephare and fit and some photo-zs are derived from it.

@mairanteodoro mairanteodoro merged commit a191da8 into spacetelescope:main May 5, 2025
2 checks passed
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.

4 participants