Commit graph

16 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
Mike McLean
61675aec2f be pickier about keyword args and add a note about them in usage 2023-07-04 08:55:12 +02:00
Mike McLean
65d0bbb897 additional unit tests 2023-07-04 08:55:12 +02:00
Mike McLean
97932391de unit tests 2023-07-04 08:55:12 +02:00
Tomas Kopecek
5c1718337c fix tests 2023-01-23 11:46:15 +01:00
Jana Cupova
c3e89500f2 Add and upfate CLI unit tests
Fixes: https://pagure.io/koji/issue/729
2021-11-29 15:39:10 +01:00
Tomas Kopecek
b6bdad7d50 cli: fix help message formatting
Related: https://pagure.io/koji/issue/2718
2021-03-05 15:36:12 +01:00
Tomas Kopecek
0f56d39487 remove deprecated --ca option
Fixes: https://pagure.io/koji/issue/2192
2020-11-23 11:03:38 +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
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
Franz Chih-Ping Hsieh
d331fdfa11 refactory CLI unittests including:
- introduce new CliTestCase class
 - implement useful assert functions in CliTestCase
2017-11-30 15:02:00 -05:00
Franz Chih-Ping Hsieh
85f489ee98 rename testcase class name 2017-10-30 16:13:40 -04:00
Franz Chih-Ping Hsieh
cb0d9ba37d add unittests for koji command line:
- call
 - hello / moshimoshi
 - maven-chain
 - resubmit
2017-10-30 16:13:40 -04:00