Mike McLean
8bc1c1b466
fix bandit B704
2025-05-07 14:07:04 +02:00
Yuming Zhu
8749db575e
combination of test-requirments(-py2).txt
2025-01-07 13:37:40 +01:00
Yuming Zhu
c8a27e525a
unittest: enabling tests/test_lib for py2
2025-01-06 10:55:41 +01:00
Mike McLean
6fb91c040a
also use venv coverage
2024-07-18 14:22:43 +02:00
Mike McLean
44c16b8c68
use venv pytest, stop using ancient mock version
...
dropping mock from the py3 reqs entirely so we use python's lib
2024-07-18 14:22:43 +02:00
Mike McLean
c444cd5eb5
use pytest-dist for make test3
2024-07-18 14:22:43 +02:00
Jana Cupova
ba612e1e90
Remove rpm-py-installer, update test docs and update Dockerfiles
...
Remove rpm-py-installer from requirements
Check duplicite and unused packages in Dockerfiles and test-requirements
Update docs about unit tests.
Fixes: https://pagure.io/koji/issue/3868
2024-01-30 12:44:07 +01:00
Jana Cupova
1b8b96a70d
Add allowed versions of requests-mock for tests
2024-01-02 14:32:56 +01:00
Tomas Kopecek
0b415345c1
tox: Don't install coverage every run
...
Subsequent test runs are bit faster.
Related: https://pagure.io/koji/issue/3860
2023-08-03 12:55:59 +02:00
Tomas Kopecek
9d9eca5741
fix syntax for tox 4.4.8
2023-04-20 10:04:41 +02:00
Tomas Kopecek
c3f42e2ed5
Set COLUMNS for tests to handle different terminals
2023-04-18 13:44:17 +02:00
Jana Cupova
2139b237d0
ArgumentParser instead of ArgumentParser in sidetag CLI plugin
...
Fixes: https://pagure.io/koji/issue/3739
2023-04-03 15:23:21 +02:00
Tomas Kopecek
7ceffe391c
unify relative imports
2023-03-01 11:46:24 +01:00
Tomas Kopecek
e6e618d0bb
fix tests
2022-12-08 13:37:32 +01:00
Tomas Kopecek
8902675489
further changes
2022-12-08 09:57:35 +01:00
Tomas Kopecek
5db5fd8b03
fix bandit env
2022-01-03 10:31:54 +01:00
Jana Cupova
c310d6692d
Pytest instead of nose in unittest
...
Fixes: https://pagure.io/koji/issue/3140
2021-12-06 12:17:29 +01:00
Tomas Kopecek
ba2e1e520b
basic security checks with bandit
...
Fixes: https://pagure.io/koji/issue/3042
2021-10-20 15:20:14 +02:00
Joe Talbott
8d8d441d7e
tests - Add support for running tox with specific test(s)
2021-06-01 22:59:06 -04:00
Zack Cerza
1d2f542f1a
tox: Fix flake8 invocation
...
Signed-off-by: Zack Cerza <zack@redhat.com>
2020-09-08 16:20:19 +02:00
Zack Cerza
a654215524
tox: Fix typo in py2 env
...
Coverage reports were going in the wrong place.
Signed-off-by: Zack Cerza <zack@redhat.com>
2020-09-08 16:20:19 +02:00
Zack Cerza
03a68e689a
tox: Set PYTHONHASHSEED=0 for py2
...
This fixes a breakage in test_import_comps_sample_yumcomps
Signed-off-by: Zack Cerza <zack@redhat.com>
2020-09-08 16:20:19 +02:00
Zack Cerza
e51dbcca6d
tox: Add py2-rpmdeps testenv
...
This avoids grabbing requirements from PyPI. Use this testenv if you
want to only test with globally-available (read: RPM) requirements.
Signed-off-by: Zack Cerza <zack@redhat.com>
2020-09-08 16:20:19 +02:00
Zack Cerza
36e99825cb
rpm-py-installer: Download binaries
...
Instead of building from source.
Signed-off-by: Zack Cerza <zack@redhat.com>
2020-09-08 16:20:19 +02:00
Zack Cerza
2b06288792
Run tests in virtualenvs using tox
...
Signed-off-by: Zack Cerza <zack@redhat.com>
2020-09-08 16:20:19 +02:00