python3.11-requests/plan.fmf
Honza Horak 580598cd60 Replace whole repo with latest content from branch rhel-8.8.0
Content corresponds with RHEL dist-git commit 0add82b
2023-05-15 16:43:23 +02:00

22 lines
707 B
Plaintext

execute:
how: tmt
discover:
how: shell
dist-git-source: true
tests:
- name: bundled tests
require:
- python3.11-pytest
- python3.11-pip
# these are required by trustme
- python3.11-cryptography
- python3.11-pycparser
- python3.11-cffi
test: |
pip-3.11 install pytest-mock==3.10.0 trustme==0.9.0 pytest-httpbin==1.0.2 &&
cd $(dirname $TMT_SOURCE_DIR/requests-*/tests) &&
rm -rf requests &&
# https://github.com/postmanlabs/httpbin/issues/673#issuecomment-1150816886 \
sed -i -e 's/ import BaseResponse/ import Response as BaseResponse/' /usr/local/lib/python*/site-packages/httpbin/core.py &&
pytest-3.11 -v -p no:warnings tests