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

Add unit test #643

Merged
merged 4 commits into from
Aug 6, 2024
Merged

Add unit test #643

merged 4 commits into from
Aug 6, 2024

Conversation

fschlueter
Copy link
Collaborator

This PR adds unit tests for the Response class. So far only the multiply operator functionality is tests ....

Based on PR #635. Solves #642

@fschlueter
Copy link
Collaborator Author

@sjoerd-bouma

@fschlueter
Copy link
Collaborator Author

ping

Copy link
Collaborator

@sjoerd-bouma sjoerd-bouma left a comment

Choose a reason for hiding this comment

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

See comment, otherwise this is probably fine : )

Comment on lines +4 to +5
python3 NuRadioReco/detector/test/test_response.py
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this won't work reliably - if the first python script raises an error, the second one will probably still run, and the github test will only consider the output of the second test. Feel free to put this into a new test, I think.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I see thanks! I fixed it in the workflow yaml. Would that work?

@fschlueter
Copy link
Collaborator Author

ping

@fschlueter
Copy link
Collaborator Author

@cg-laser maybe you can approve this?

Copy link
Collaborator

@sjoerd-bouma sjoerd-bouma left a comment

Choose a reason for hiding this comment

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

Oops! Should have approved this a long time ago. Thank Felix!

@fschlueter fschlueter merged commit 187e890 into develop Aug 6, 2024
5 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.

2 participants