Mike McLean
40bf35c0f1
move tests to correct subdirs
2017-11-09 17:40:52 -05:00
Franz Chih-Ping Hsieh
efe68e54df
- add unit test for koji/util: (coverage 58%->100%)
...
- minor fix: check if input string time is valid
2017-11-07 09:58:21 -05:00
Mike McLean
6bb32b699e
handle DateTime objects in encode_datetime
2017-11-02 15:59:18 -04:00
Tomas Kopecek
5b23fb1629
consolidate safe_rmtree, rmtree and shutil.rmtree
...
shutil.rmtree should be avoided in almost all cases
safe_rmtree has its usage in tasks module, but innards are replaced with
koji.util.rmtree, so we don't have two implementations of same task
Related: https://pagure.io/koji/issue/648
2017-10-30 12:09:04 -04:00
Tomas Kopecek
6871f52ce8
ignore concrete timezone in tests
2017-10-06 17:10:12 -04:00
Tomas Kopecek
470addae97
fix formatTime for DateTime
...
Related: https://pagure.io/koji/issue/623
2017-10-06 17:10:12 -04:00
Mike McLean
71089f449c
test case where rpm size header gives None, but no longsize header
2017-09-08 16:33:09 -04:00
Mike McLean
cea43dd458
correct range for i8 (64 bit signed)
2017-08-25 16:48:02 -04:00
Mike McLean
2dfbd7d998
another unit test
2017-08-25 16:48:02 -04:00
Mike McLean
ae4e4e7b51
unit test corner cases. xmlrpcplus coverage 100%
2017-08-25 16:48:02 -04:00
Mike McLean
5bcaf7cebe
include some unicode in unit test data
2017-08-25 16:48:02 -04:00
Mike McLean
6c1d2e637a
use python six to get xmlrpc_client in unit tests
2017-08-25 16:48:02 -04:00
Mike McLean
bce7c414ae
more xmlrpcplus unit tests
2017-08-25 16:48:02 -04:00
Mike McLean
2925e1cf93
some unit tests for xmlrpcplus
2017-08-25 16:48:02 -04:00
Mike McLean
778d466387
unit test: check get_header_fields() with large size
2017-08-08 12:13:06 -04:00
Mike McLean
0c8d4c8f07
implement caching in _fix_cb_args
2017-08-07 12:41:40 -04:00
Mike McLean
fe7c0b4052
unit test for encode_datetime
2017-08-07 12:41:40 -04:00
Mike McLean
ab928e6196
add unit test for convert_datetime decorator
2017-08-07 12:41:40 -04:00
Yuming Zhu
0f51a9936f
extend unit tests for PluginTracker
2017-06-22 11:59:28 -04:00
Mike McLean
6419530775
unit tests for PluginTracker
2017-06-22 11:59:28 -04:00
Mike McLean
206a3320e6
unit tests for callback handling
2017-06-22 11:59:28 -04:00
Mike McLean
1a6d8377ed
some unit tests for koji.plugins
2017-06-22 11:59:28 -04:00
Mike McLean
0661e0e3eb
Work around coverage bug in py3 on Fedora
2017-06-01 09:39:25 +02:00
Tomas Kopecek
95f012b27d
fixEncoding tests
2017-06-01 09:39:25 +02:00
Mike McLean
01a0894ee5
test_lib_py2only dir
2017-06-01 09:39:25 +02:00
Mike McLean
efe59699c6
fix some test constants
2017-06-01 09:39:25 +02:00
Mike McLean
9132b1106e
avoid test_compatrequests on py3
2017-06-01 09:39:25 +02:00
Mike McLean
96532de199
no need to port compatrequests or old ssl code
2017-06-01 09:39:24 +02:00
Mike McLean
c4a48efd83
move lib tests into subdir
2017-06-01 09:39:24 +02:00