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
6002373ff9 avoid leaving stray temp files 2024-07-18 14:22:43 +02:00
Tomas Kopecek
2daa71614e fix tests according to pytests warnings 2022-10-24 10:40:50 +02:00
Tomas Kopecek
96ae0ecef5 explicit encoding for text file operations
Fixes: https://pagure.io/koji/issue/2641
2021-01-26 13:36:25 +01:00
Tomas Kopecek
b030b46f74 remove unittest2 2020-10-06 15:00:23 +02:00
Tomas Kopecek
c754713818 fix tests 2020-08-26 09:26:00 +02:00
Yu Ming Zhu
8d4a5c7129 kojid: use binary msg for python3 in *Notification tasks
fixes: #1882
2020-01-02 10:44:20 +01:00
Tomas Kopecek
6fd33bfd1f use LANG=C for running tests comparing human-readable output 2019-06-26 15:58:48 -04:00
Tomas Kopecek
eeeeb3ab78 skip fixEncoding for py3 2019-03-04 10:13:51 -05:00
Mike McLean
23320221f5 remove old commented line 2019-02-19 17:29:25 -05:00
Tomas Kopecek
99e72ead68 Fix unit tests 2019-02-19 17:29:25 -05:00
Yuming Zhu
d70f22ee1b fix timezone in test_list_tagged 2018-10-18 14:37:35 +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
Tomas Kopecek
379ec8ae63 python-modernize -f lib2to3.fixes.file . -w 2017-10-31 16:05:16 +01:00
Yuming Zhu
659a63a167 set timezone to US/Eastern when test_build_notification executing
following PR#628
2017-10-12 10:40:47 -04:00
Mike McLean
00e059c0c0 unit test for buildNotification task handler 2017-10-11 16:36:40 -04:00