CLI: download-task prints "No files for download found." to stdout
Fixes: https://pagure.io/koji/issue/3400
This commit is contained in:
parent
7d6fa96363
commit
4acb8f7476
2 changed files with 6 additions and 7 deletions
|
|
@ -215,15 +215,13 @@ class TestDownloadTask(utils.CliTestCase):
|
|||
|
||||
# Run it and check immediate output
|
||||
# args: task_id --arch=s390,ppc
|
||||
# expected: failure
|
||||
with self.assertRaises(SystemExit) as ex:
|
||||
anon_handle_download_task(self.options, self.session, args)
|
||||
self.assertExitCode(ex, 1)
|
||||
# expected: pass
|
||||
anon_handle_download_task(self.options, self.session, args)
|
||||
actual = self.stdout.getvalue()
|
||||
expected = ''
|
||||
expected = 'No files for download found.\n'
|
||||
self.assertMultiLineEqual(actual, expected)
|
||||
actual = self.stderr.getvalue()
|
||||
expected = 'No files for download found.\n'
|
||||
expected = ''
|
||||
self.assertMultiLineEqual(actual, expected)
|
||||
# Finally, assert that things were called as we expected.
|
||||
self.ensure_connection.assert_called_once_with(self.session, self.options)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue