You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactored others type of subotimal asserts (#7672)
### Description
As discussed in PR #7609, I tried to break the suboptimal test refactors
to smaller pieces. In this PR all asserts are checking textual content
or instance of a parameter.
Suboptimal Assert: Instead of using statements such as assertIsNone,
assertIsInstance, always simply use assertTrue or assertFalse. This will
decrease the code overall readability and increase the execution time as
extra logic needed.
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.
---------
Signed-off-by: Han Wang <freddie.wanah@gmail.com>
Signed-off-by: Ben Murray <ben.murray@gmail.com>
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Co-authored-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Co-authored-by: Ben Murray <ben.murray@gmail.com>
0 commit comments