Update the Mercurial unit tests to use build_client() and clean up tests.
Review Request #12508 — Created Aug. 5, 2022 and submitted
This updates the Mercurial unit tests to build a
MercurialClient
in
each test where it's needed, rather than insetUp()
. This is in
prepration for new tests that will need to handle client construction
differently.This also cleans up a lot of the assertions to be less verbose and to be
more comprehensive.We had a lot of combinations of checking instance type, key presence,
and then values, but this is far less useful (less accurate) than just
checking dictionaries for equality. We missed things because we weren't
doing these checks.Given the work being done already in each function, I felt this was the
best time to clean this code up. It's caught some missing state we
weren't checking.
Mercurial unit tests pass.
Summary | ID |
---|---|
597657ccec6f6de6fa3e3679a826de89238a4c78 |
- Change Summary:
-
Updated to target RBTools 4.0.
- Commits:
-
Summary ID 51850ae596552af1f3c50367ebfa7e19b0d422cc 597657ccec6f6de6fa3e3679a826de89238a4c78 - Branch:
-
release-3.xrelease-4.x
- Diff:
-
Revision 2 (+886 -636)