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

test: replace assertTrue by more specific assert checks #463

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bdrung
Copy link
Collaborator

@bdrung bdrung commented Feb 28, 2025

In case of failures TestCase.assertTrue will only tell that the value is not True. Replace assertTrue by assertEqual or assertIn to get better failure messages. Following snippet was used to find the instances:

git grep assertTrue | grep ==

In case of failures `TestCase.assertTrue` will only tell that the value
is not True. Replace `assertTrue` by `assertEqual` or `assertIn` to get
better failure messages. Following snippet was used to find the
instances:

```
git grep assertTrue | grep ==
```
@bdrung bdrung requested a review from schopin-pro February 28, 2025 11:20
@bdrung bdrung added this to the 2.33.0 milestone Feb 28, 2025
Copy link

codecov bot commented Feb 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.61%. Comparing base (24f307b) to head (e7356b8).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #463   +/-   ##
=======================================
  Coverage   83.61%   83.61%           
=======================================
  Files         101      101           
  Lines       20464    20465    +1     
  Branches     3219     3219           
=======================================
+ Hits        17111    17112    +1     
+ Misses       2858     2857    -1     
- Partials      495      496    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant