Commit graph

14 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
cfd6d3064f show hub version in koji hello 2024-02-29 15:40:03 +01:00
Jana Cupova
44f5ebaabb Authtype as enum and getSessionInfo prints authtype name
Fixes: https://pagure.io/koji/issue/3436
2022-07-26 14:36:00 +02:00
Jana Cupova
a8f11fbf9c Increase CLI test cases 2022-03-21 14:42:08 +01:00
Tomas Kopecek
b030b46f74 remove unittest2 2020-10-06 15:00:23 +02:00
Tomas Kopecek
502e7ed2ca fix tests 2019-12-11 11:47:02 +01:00
Yu Ming Zhu
cace979532 fix unittests 2019-10-10 16:37:57 +02: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
d46f537366 add unit tests for cli commands, coverage(46%) 2018-02-05 15:15:02 +01:00
Franz Chih-Ping Hsieh
bdcb8065d2 improve coverage rate in existing test cases. 2018-02-05 15:15:02 +01: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