unit test for cli list-tagged command

This commit is contained in:
Yuming Zhu 2018-05-17 17:51:20 +08:00 committed by Mike McLean
parent 4a89f8a145
commit b3bc4b6e85
2 changed files with 241 additions and 1 deletions

View file

@ -2406,7 +2406,7 @@ def anon_handle_list_tagged(goptions, session, args):
package = args[1]
tag = args[0]
opts = {}
for key in ('latest','inherit'):
for key in ('latest', 'inherit'):
opts[key] = getattr(options, key)
if options.latest_n is not None:
opts['latest'] = options.latest_n