Fix unit test checking Gerrit plugin version
Review Request #9860 — Created April 6, 2018 and submitted
The unit test that was checking for a failed plugin compatability
used hardcoded version string of 0.1.0, instead of the actual required
version. This didn't get caught during the plugin version bump that
happened when we released the gerrit plugin but has now been rectified.The error message has also been improved to include the original version
string we receive instead of our parsed tuple.
Ran unit tests.
Description | From | Last Updated |
---|---|---|
This is confusing. Why not: version_str = rsp['gerrit-reviewboard']['version'] try: version = self._parse_plugin_version(version_str) except Exception as e: ... |
david | |
This is from another change. Please post with the correct revision range (and please look at your diffs before publishing) |
david | |
Should be %d to explicitly match how the format string is being built. Thinking though that we should have a … |
chipx86 |
- Change Summary:
-
Addressed David's feedback.
- Commit:
-
79ed150eb8f9b6301d5808810d7085acca2817aa449b87a928be6d893497b7126c6cfdc3f6cf6341
Checks run (2 succeeded)
- Commit:
-
449b87a928be6d893497b7126c6cfdc3f6cf63415c4c9fbb768122351bc38ddaaca6a402061ab864