unit test

This commit is contained in:
Tomas Kopecek 2017-10-10 11:28:37 +02:00 committed by Mike McLean
parent c7fbf4ec81
commit 77339cc7a1
2 changed files with 152 additions and 0 deletions

View file

@ -588,6 +588,8 @@ def _list_tasks(options, session):
}
if getattr(options, 'mine'):
if getattr(options, 'user'):
raise koji.GenericError("Can't specify 'mine' and 'user' in same time")
user = session.getLoggedInUser()
if not user:
print("Unable to determine user")