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

Improving unit tests assertion messages #2275

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented Jun 1, 2024

Using unittest assertion methods where possible (since this project doesn't use pytest)
Raise NotImplementedError for unimplemented methods
Use raise AssertionError instead of assert 0 (except in pywin/debugger, in case that's done on purpose)

@Avasam Avasam force-pushed the unittest-asserts branch 2 times, most recently from 2dbdaf7 to 4895c7a Compare June 1, 2024 18:16
@Avasam Avasam merged commit 457bda8 into mhammond:main Jun 4, 2024
27 checks passed
@Avasam Avasam deleted the unittest-asserts branch June 4, 2024 15:21
clin1234 pushed a commit to clin1234/pywin32 that referenced this pull request Jun 7, 2024
Using `unittest` assertion methods where possible (since this project doesn't use pytest)
Raise `NotImplementedError` for unimplemented methods
Use `raise AssertionError` instead of `assert 0` (except in `pywin/debugger`, in case that's done on purpose)
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.

None yet

2 participants