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

Use Unittest Asserts #93

Merged
merged 1 commit into from
Dec 22, 2023
Merged

Use Unittest Asserts #93

merged 1 commit into from
Dec 22, 2023

Conversation

lkiesow
Copy link
Owner

@lkiesow lkiesow commented Jan 28, 2020

This patch switches to the assert statements provided by Python's unit
test framework to assure the statements are always executed and produce
proper error messages in case of test failures.

@hugovk
Copy link

hugovk commented Jun 11, 2022

Alternatively, the popular pytest could be used for running tests, and it uses assert statements. (It does some smart detection of them to decide what error message to show.)

I could put together a PR if you like.

This patch switches to the assert statements provided by Python's unit
test framework to assure the statements are always executed and produce
proper error messages in case of test failures.
@lkiesow lkiesow merged commit bb08f31 into master Dec 22, 2023
2 checks passed
@lkiesow lkiesow deleted the unittest-assert branch December 22, 2023 10:42
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