Commit graph

17 commits

Author SHA1 Message Date
Yuming Zhu
ca05418fb5 unittest: use unittest.mock instead of mock
because the absence of unittest.mock on python2.7, we still fallback to
mock
2024-10-23 16:35:30 +00:00
Mike McLean
2485b87294 more missing tearDowns 2024-04-15 11:08:29 +02:00
Jana Cupova
fd9239cba0 Add test cases for help
Fixes: https://pagure.io/koji/issue/3651
2023-01-09 11:02:30 +01:00
Jana Cupova
4c50c5fe92 Increase CLI unit tests 2022-02-07 09:20:58 +01:00
Jana Cupova
5232ea5aa1 error function instead of print with sys.exit in CLI commands
Fixes: https://pagure.io/koji/issue/3112
2021-12-15 15:19:18 +01:00
Tomas Kopecek
a643ab7236 fix tests for new option 2021-04-19 15:15:53 +02:00
Jana Cupova
e784373000 Unify error messages
Unify error messages for CLI

Unify error messages for hub

Fixes: https://pagure.io/koji/issue/2720
2021-03-16 08:43:33 +01:00
Tomas Kopecek
b030b46f74 remove unittest2 2020-10-06 15:00:23 +02:00
Tomas Kopecek
04f6ba886e fix tests 2020-04-22 14:54:10 +02:00
Tomas Kopecek
4e28eda265 fix usage message for add-pkg
Fixes: https://pagure.io/koji/issue/1212
2020-02-04 10:33:34 +01:00
Tomas Kopecek
502e7ed2ca fix tests 2019-12-11 11:47:02 +01:00
Tomas Kopecek
c68396c059 Use unittest2 for rhel6 compatibility
Fixes: https://pagure.io/koji/issue/830
2018-06-07 09:39:39 -04:00
Tomas Kopecek
c02eb739aa update cli tests 2017-06-13 11:42:04 +02:00
Tomas Kopecek
b4c7433cc4 StringIO to six 2017-06-01 09:39:23 +02:00
Tomas Kopecek
8962c26080 python-modernize -f libmodernize.fixes.fix_import 2017-06-01 09:39:23 +02:00
Yuming Zhu
d36d908795 remove renaming in cli 2016-10-13 00:48:59 -04:00
Yuming Zhu
9c984a4f5d ut: cli - test_add_pkg 2016-10-13 00:48:59 -04:00