Add unit tests for git-p4.
Review Request #12649 — Created Sept. 27, 2022 and submitted
The git-p4 support in
GitClient
lacked any real testing, which meant
it regressed with Python 3. This also made it harder to iterate on. We
had some fantastic work in recent contributions to extend the features
of git-p4 diffs, but we couldn't reasonably ask for any unit tests to be
written to prove the support works.This change introduces unit tests that cover
get_repository_info()
and
diff()
for git-p4. It avoids duplicating a lot of the core diff tests,
but does cover all the Perforce-specific operations and multi-commit
review requests.There's also a bit of cleanup to related tests in this file, to keep
naming consistent.This is a precursor to work for optimizing and future-proofing this
code.
Unit tests pass.
Summary | ID |
---|---|
e1863406f17441097cf5ef986cb3a9c87a943e03 |
- Change Summary:
-
- Removed an extra blank line.
- Removed an unused import.
- Commits:
-
Summary ID 20fdbd4574e75859b174008fa646a1cc59ad8a70 cc09d7d26d855303afdf2a40e0e0ecf10245524c
Checks run (2 succeeded)
- Change Summary:
-
Fixed the content for a tests docstring.
- Commits:
-
Summary ID cc09d7d26d855303afdf2a40e0e0ecf10245524c aa1bdf3bd44e423fe77cf5d4f1ce2ab5e7593c1a