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

Fix pSTIR python tests #1276

Merged
merged 3 commits into from
Jul 8, 2024

Conversation

KrisThielemans
Copy link
Member

Fixes #1275

@KrisThielemans KrisThielemans added this to the v3.8 milestone Jul 8, 2024
avoid picking up pytest/unittest files. This is dangerous,
but we shouldn't use this file anymore anyway AFAIK.
Had to rename 2 functions from test_* to *_tests to avoid
pytest flagging up an error
@KrisThielemans
Copy link
Member Author

I reverted (actually removed the commit) changing tests_two.txt which changed the stored results of

image = acq_data.create_uniform_image(1.0)
test.check(image.norm())

On GHA, we get 718, while on my desktop I get 723. Not sure why.

make test on norm of uniform image depend on computed result,
not stored result
@KrisThielemans KrisThielemans merged commit 6c10a0d into SyneRBI:master Jul 8, 2024
6 checks passed
@KrisThielemans KrisThielemans deleted the fix_Python_tests branch July 8, 2024 13:18
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.

ctest does not run Python tests properly
1 participant