unit test
This commit is contained in:
parent
661a5cb3e8
commit
e4ada43912
2 changed files with 9 additions and 3 deletions
|
|
@ -91,7 +91,7 @@ build commands:
|
|||
wrapper-rpm Build wrapper rpms for any archives associated with a build.
|
||||
|
||||
download commands:
|
||||
download-build Download a built package
|
||||
download-build Download a completed build
|
||||
download-logs Download logs for task
|
||||
download-task Download the output of a build task
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,10 @@ class TestDownloadBuild(utils.CliTestCase):
|
|||
self.options.debug = False
|
||||
self.session = mock.MagicMock()
|
||||
self.session.getAPIVersion.return_value = koji.API_VERSION
|
||||
self.error_format = """Usage: %s download-build [options] <n-v-r | build_id | package>
|
||||
self.error_format = """Usage: %s download-build [options] <n-v-r|build_id>
|
||||
|
||||
Downloads files from the specified build entry
|
||||
Note: scratch builds do not have build entries. Use download-task for those
|
||||
(Specify the --help global option for a list of other help options)
|
||||
|
||||
%s: error: {message}
|
||||
|
|
@ -274,7 +277,10 @@ class TestDownloadBuild(utils.CliTestCase):
|
|||
def test_handle_add_volume_help(self):
|
||||
self.assert_help(
|
||||
anon_handle_download_build,
|
||||
"""Usage: %s download-build [options] <n-v-r | build_id | package>
|
||||
"""Usage: %s download-build [options] <n-v-r|build_id>
|
||||
|
||||
Downloads files from the specified build entry
|
||||
Note: scratch builds do not have build entries. Use download-task for those
|
||||
(Specify the --help global option for a list of other help options)
|
||||
|
||||
Options:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue