Mike McLean
cd36bb2826
test_pages updates
...
This fixes issues with test_pages that I found while checking
coverage. The environ dict was recycled across each call in the loop,
but those calls can modify it, leaking data from one pass to another.
Also, the mocking for _getServer was not placing the session in the
environ, which was causing the tests to miss some cases.
2025-06-12 13:24:12 +02:00
Mike McLean
c7a5622934
update test_pages to cover new code
2025-06-12 13:24:12 +02:00
Mike McLean
1d929d0d71
update call data for unit test
2025-06-12 13:24:12 +02:00
Mike McLean
357587a57c
repo requests web ui
...
* new page for request details
* new page for querying requests
* add links in taginfo and taskinfo pages
* show more data in repoinfo page
2025-06-12 13:24:12 +02:00
Mike McLean
0321b7128b
Unit tests, fixes, and cleanup
2025-05-07 14:07:03 +02:00
Mike McLean
dee1127ce8
Initial jinja2 porting work
2025-05-07 14:07:03 +02:00
Mike McLean
abf33cea63
unit test
2025-02-24 12:17:24 -05:00
Mike McLean
d94ba90a22
drop cgi import from unit tests
2024-10-30 15:27:41 -04:00
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
05155bf9cf
fix unit tests
2024-09-30 10:46:29 -04:00
Jana Cupova
eabf1c8b3d
Increase index.py unit tests
2024-06-04 12:51:31 +02:00
Tomas Kopecek
030e37e1fb
fix tests/flake8
2023-07-04 09:09:57 +02:00
Tomas Kopecek
589e49a663
www: more generic taskinfo parameter handling
...
Related: https://pagure.io/koji/issue/3454
2022-09-22 12:10:03 +02:00
Jana Cupova
c1e669111f
www: archivelist and rpmlist raise error when imageID is unknown
...
Fixes: https://pagure.io/koji/issue/3381
2022-07-25 11:18:09 +02:00
Jana Cupova
d4f3995202
Increase www unit tests
2022-06-01 09:44:40 +02:00
Jana Cupova
9541c2a173
importlib instead of imp
...
Fixes: https://pagure.io/koji/issue/2822
2021-06-02 11:19:33 +02:00
Alex Iribarren
41d5414245
Don't encode already encoded entities
2021-04-19 15:09:36 +02:00
Alex Iribarren
1c7f83acf6
Escape single and double quotes as well, plus add test
2021-04-19 15:09:36 +02:00
Alex Iribarren
a233a0ca72
Show VCS and DistURL tags as links when appropriate
2021-04-19 15:09:36 +02:00
Jana Cupova
f4bc5ef3a3
unify error messages for web
...
Fixes: https://pagure.io/koji/issue/2720
2021-04-07 10:49:03 +02:00
Tomas Kopecek
7b27889122
fix test
2020-11-05 14:16:02 +01:00
Tomas Kopecek
51358cfd09
simplify py3 tests
2020-06-18 15:41:35 +02:00
Tomas Kopecek
e0ad9c5a1e
fix test
2020-02-04 10:53:12 +01:00
Tomas Kopecek
bd649d2723
prioritize unittest2
...
Make all imports consistent with
https://pagure.io/koji/issue/830
Fixes: https://pagure.io/koji/issue/1001
2018-08-16 09:03:09 -04:00
Tomas Kopecek
7f6b717eb6
python-modernize -f libmodernize.fixes.fix_import
2018-07-11 17:37:39 -04: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
442ec600a7
add unit test for taskinfo() in koji-web.
2018-03-01 16:01:47 -05:00
Tomas Kopecek
5ac2a6b8f0
display suid bit in web ui
...
Related: https://pagure.io/koji/issue/616
2017-10-05 10:38:48 -04:00