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

Make the tests more pythonic #52

Merged
merged 2 commits into from
Oct 17, 2023
Merged

Conversation

dave3d
Copy link
Member

@dave3d dave3d commented Oct 16, 2023

No description provided.

@dave3d dave3d requested a review from blowekamp October 16, 2023 22:47
output_string = str(runresult.stdout)
print("\nTest output:", output_string)
self.assertEqual(
runresult.returncode, 0, "Basic test FAIL: " + str(runresult.stdout)
Copy link
Member

Choose a reason for hiding this comment

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

What is displayed by unit test when an assert fails? Is the name of the current test and the "FAIL" status really needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

New commit gets rid of that and reduces the output message when a test fails.

@dave3d dave3d requested a review from blowekamp October 17, 2023 15:58
Copy link
Member

@blowekamp blowekamp left a comment

Choose a reason for hiding this comment

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

nice improvement

@dave3d dave3d merged commit c1609e7 into SimpleITK:main Oct 17, 2023
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.

2 participants