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

Standardize test assertions for sample files #233

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

lelutin
Copy link
Contributor

@lelutin lelutin commented Jun 18, 2024

The test_com_allsamples test is the only one that's using self.fail() instead of functions from the unittest.UnitTest class. Because of this, failures show a super obscure output that does not show the actual nature of the failure, which makes it really difficult to debug.

With self.assert*() at least when there is a difference in values, it will get shown, leading to easier debugging.

The test_com_allsamples test is the only one that's using self.fail()
instead of functions from the unittest.UnitTest class. Because of this,
failures show a super obscure output that does not show the actual
nature of the failure, which makes it really difficult to debug.

With self.assert*() at least when there is a difference in values, it
will get shown, leading to easier debugging.
@richardpenman richardpenman merged commit 417236a into richardpenman:master Jun 19, 2024
3 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