Franz Chih-Ping Hsieh
36ed909cbb
fix typo, tailing white space, unused parameter
2018-02-26 15:19:59 -05:00
Franz Chih-Ping Hsieh
f0fcb0177f
add unit tests for spin-* commands
2018-02-26 15:19:59 -05:00
Yuming Zhu
d72fd927de
fix unexcepted order problem in test_taskinfo
2018-02-05 15:26:19 +01: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
8a273b2cae
add unit test for cli commands, coverage(40%)
2018-02-05 15:15:02 +01:00
Franz Chih-Ping Hsieh
551ef9e254
add unit test for koji_cli.commands.handle_dist_repo
2017-12-19 09:52:45 -05:00
Franz Chih-Ping Hsieh
ec99419f3b
Add unit tests for koji image_build command
2017-11-30 15:02:00 -05:00
Franz Chih-Ping Hsieh
f16f26be63
Add unit tests for koji commands
2017-11-30 15:02:00 -05: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
Mike McLean
d38a2f30da
py3 fixes for watch-tasks unit tests
2017-11-28 13:40:29 -05:00
Mike McLean
704e542b65
test_watch_tasks_with_keyboardinterrupt()
2017-11-28 13:40:29 -05:00
Mike McLean
2b0146a0ba
another watch-tasks test
2017-11-28 13:40:29 -05:00
Mike McLean
83015e643c
fakeclient: support multiple calls per key
2017-11-28 13:40:29 -05:00
Mike McLean
d97cf1f961
use fake client for watch_tasks testing
2017-11-28 13:40:29 -05:00
Mike McLean
cf19091d9c
cleanup
2017-11-28 13:40:29 -05:00
Mike McLean
0957874f8f
partial work
2017-11-28 13:40:29 -05:00
Franz Chih-Ping Hsieh
2096c6fce8
mock koji.commands._running_in_bg funtion to run unittest in background
2017-10-30 22:08:20 -04: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
Franz Chih-Ping Hsieh
17f006511d
add unittests for koji commands
...
- assign-task
- wrapper-rpm
2017-10-30 16:13:40 -04:00
Tomas Kopecek
bf0552e6de
use contextlib wrapper for older python-requests
2017-10-16 10:03:42 -04:00
Tomas Kopecek
7e2cb6b156
replace pycurl with requests
...
Related: https://pagure.io/koji/issue/600
2017-10-16 10:03:42 -04:00
Tomas Kopecek
77339cc7a1
unit test
2017-10-11 01:05:41 -04:00
Tomas Kopecek
26474b72fc
drop importBuildInPlace call
...
"The importBuildInPlace call is an artifact of a particular bootstrap
event that happened a long time ago. It's not really documented or
recommended for current use."
Related: https://pagure.io/koji/issue/553
2017-09-26 17:32:16 -04:00
Tomas Kopecek
1891892c25
move spin-livemedia to build section
...
Related: https://pagure.io/koji/issue/586
2017-09-26 12:42:56 +02:00
Tomas Kopecek
647978bb70
update test
2017-09-18 16:56:22 -04:00
Mike McLean
aa9a7b8841
avoid mocking isfile in unit test
2017-09-14 23:34:47 -04:00
Mike McLean
9bd9e07b42
unit tests for activate_session
2017-09-14 22:59:41 -04:00
Brendan Reilly
f9f41b46e6
Added better state handling, prefix option, tz handling, sorting to list-builds
2017-09-08 16:20:17 -04:00
Yuming Zhu
ba087236dd
cli: using PROGRESSFUNCTION before libcurl 7.32.0 in download_file
2017-08-08 12:26:22 -04:00
Yuming Zhu
5df1e3e6e6
cli: do not print extra blank line when noprogress passed
2017-08-08 12:26:22 -04:00
Yuming Zhu
c730f2b3aa
fix cli unittest: test_download_task.py for py3
2017-08-08 12:26:22 -04:00
Yuming Zhu
dc0e0303f2
cli: unittest for download_file
2017-08-08 12:26:22 -04:00
Yuming Zhu
25c36a8b56
unittest for cli:download-task
2017-08-08 12:26:22 -04:00
Yuming Zhu
1e77866b35
cli: change download-task to regular curl download
...
also make 301/302 redirect acceptable by download-build & download-task
2017-08-08 12:26:22 -04:00
Tomas Kopecek
6c68b6ab34
CLI block-group command
...
Relates: https://pagure.io/koji/issue/462
2017-07-25 12:14:26 -04:00
Tomas Kopecek
f7bdb7a089
koji_cli name interferes with new library
2017-06-22 12:03:00 -04:00
Yuming Zhu
6fe90a170d
unit tests for cli.load_plugins
2017-06-22 11:59:28 -04:00
Tomas Kopecek
c02eb739aa
update cli tests
2017-06-13 11:42:04 +02:00
Tomas Kopecek
c5f910ffd9
list-channels CLI command
...
Related: https://pagure.io/koji/issue/437
2017-06-07 14:51:28 -04:00
Mike McLean
6092f9e2ae
coverage for py3 unit tests
2017-06-01 09:39:25 +02:00
Tomas Kopecek
449390cff9
cli-related test fixes
2017-06-01 09:39:23 +02:00
Tomas Kopecek
b4c7433cc4
StringIO to six
2017-06-01 09:39:23 +02:00
Tomas Kopecek
0ac44b5374
fix relative import
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
Tomas Kopecek
68bf19c739
python-modernize -f libmodernize.fixes.fix_dict_six
2017-06-01 09:39:22 +02:00
Tomas Kopecek
73356b50e5
fix relative imports
2017-06-01 09:39:21 +02:00
Tomas Kopecek
7f946b37be
python-modernize -f libmodernize.fixes.fix_xrange_six
2017-06-01 09:39:21 +02:00
Brendan Reilly
6c69a6f5cb
Added hostinfo command to cli
2017-05-01 14:30:54 -04:00