python3.12-urllib3/plan.fmf
Lukas Zachar 08ada06532 Add tmt plan for gating
Cherry-picked from python3.11-urllib3 095ef781f440c73487a2b96d150ca18e7346d2ce
095ef781f4
2024-01-16 12:10:10 +01:00

24 lines
690 B
Plaintext

execute:
how: tmt
discover:
how: shell
dist-git-source: true
tests:
- name: bundled tests
require:
- python3.12-pytest
- python3.12-pip
- python3.12-cryptography
- python3.12-pycparser
- python3.12-cffi
- python3.12-urllib3
test: |
pip3.12 install trustme==0.9.0 tornado==6.2 pytest-freezegun==0.4.2 &&
cd $(dirname $TMT_SOURCE_DIR/urllib3-*/test) &&
rm -rf test/appengine test/test_no_ssl.py &&
rm -rf test/with_dummyserver test/contrib &&
sed -i -e 's/^import mock/from unittest import mock/' \
-e 's/^from mock import /from unittest.mock import /' \
test/*.py docs/conf.py &&
pytest-3.12 test