Add dependency checks for ClearCase.
Review Request #12546 — Created Aug. 18, 2022 and submitted
ClearCaseClientto add formal support for dependency
ClearCaseClient.check_dependencies()now determines if
cleartoolis installed, and no longer invokes it upon instantiation of
ClearCaseClient.host_propertiesattribute used to be set when the
client was instantiated. Now it's a property that retrieves the
information upon first access, performing a dependency check if needed
(and emitting a warning if one was not already performed).
Unit tests have been updated to include new dependency-related tests.
Since the existing ClearCase tests are designed to use spies to simulate
results, rather than depending on
cleartoolfor test runs, those have
been updated to turn off dependency checks when setting up a client.
Unit tests pass on Python 3.7-3.11.
Given that this can raise and we're not catching it here, should we include "Raises" in the method docs?
host_propertiesdocs to show exceptions raised and say that the result may be
Revision 2 (+546 -68)
Checks run (2 succeeded)