Support simulating file fetch errors in TestTool.
Review Request #12294 — Created May 22, 2022 and submitted — Latest diff uploaded
TestTool.get_file()
now accepts specialbad:file-not-found
and
bad:scm-error
paths that will simulate theFileNotFoundError
and
SCMError
exceptions, respectively. This can aid in testing against
these sorts of results without needing to spy on methods.
Made use of this in an upcoming change. Simulated both error types.