Unify error messages
Unify error messages for CLI Unify error messages for hub Fixes: https://pagure.io/koji/issue/2720
This commit is contained in:
parent
bbe5b4c703
commit
e784373000
77 changed files with 2170 additions and 348 deletions
|
|
@ -1,10 +1,13 @@
|
|||
from __future__ import absolute_import
|
||||
import json
|
||||
import mock
|
||||
|
||||
import os
|
||||
import six
|
||||
import sys
|
||||
import unittest
|
||||
import json
|
||||
|
||||
import mock
|
||||
import six
|
||||
from nose.plugins.skip import SkipTest
|
||||
|
||||
try:
|
||||
import libcomps
|
||||
|
|
@ -15,13 +18,11 @@ try:
|
|||
except ImportError:
|
||||
yumcomps = None
|
||||
|
||||
from nose.plugins.skip import SkipTest
|
||||
|
||||
import koji_cli.commands
|
||||
from koji_cli.commands import handle_import_comps, _import_comps,\
|
||||
_import_comps_alt
|
||||
from koji_cli.commands import handle_import_comps, _import_comps, _import_comps_alt
|
||||
from . import utils
|
||||
|
||||
|
||||
class TestImportComps(utils.CliTestCase):
|
||||
# Show long diffs in error output...
|
||||
maxDiff = None
|
||||
|
|
@ -172,7 +173,7 @@ class TestImportComps(utils.CliTestCase):
|
|||
handle_import_comps(options, session, args)
|
||||
self.assertExitCode(ex, 1)
|
||||
actual = stderr.getvalue()
|
||||
expected = 'No such tag: tag\n'
|
||||
expected = 'No such tag: %s\n' % tag
|
||||
self.assertMultiLineEqual(actual, expected)
|
||||
|
||||
# Finally, assert that things were called as we expected.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue