Skip to content

Commit

Permalink
chore(tests): unpin pytest
Browse files Browse the repository at this point in the history
As the breaking change (deprecation) in pytest=8.1.1 has been already
fixed in flexmock¹, unpin pytest and also install flexmock from the PyPI
rather than RPM (to ensure the same behavior even if we switched back to
the CentOS images).

Newer version of pytest introduces ‹PYTEST_VERSION› environment variable
that can be used to detect whether the tests are being run or not, which
is used in some safe-guards in the events-refactor².

¹ flexmock/flexmock#153
² https://github.com/packit-service/packit/pull/2590

Signed-off-by: Matej Focko <[email protected]>
  • Loading branch information
mfocko committed Jan 23, 2025
1 parent cf587c9 commit db1ed11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/recipe-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
- name: Install test RPM dependencies
ansible.builtin.dnf:
name:
- python3-flexmock
- tar
- rsync
state: present
- name: Install pip deps
ansible.builtin.pip:
name:
- requre
- pytest==8.0.2
- flexmock
- pytest
- pytest-cov
- pytest-flask
- deepdiff < 8.0.0 # version 8.0.0 requires numpy, avoid it

0 comments on commit db1ed11

Please sign in to comment.