Honour --force-auth for anonymous commands
Fixes: https://pagure.io/koji/issue/2657
This commit is contained in:
parent
1269317618
commit
5d86608931
7 changed files with 30 additions and 16 deletions
|
|
@ -20,10 +20,12 @@ Available search types: package, build, tag, target, user, host, rpm, maven, win
|
|||
%s: error: {message}
|
||||
""" % (self.progname, self.progname)
|
||||
|
||||
@mock.patch('koji_cli.commands.ensure_connection')
|
||||
@mock.patch('sys.stdout', new_callable=six.StringIO)
|
||||
def test_anon_handle_search(
|
||||
self,
|
||||
stdout):
|
||||
stdout,
|
||||
ensure_connection_mock):
|
||||
"""Test anon_handle_search function"""
|
||||
session = mock.MagicMock()
|
||||
options = mock.MagicMock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue