python3-pytest-httpserver: fix tests

This commit is contained in:
Michal Vasilek 2023-01-13 16:23:23 +01:00
parent 9dd813215c
commit e2713270ec
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ pkgname=python3-pytest-httpserver
version=1.0.5 version=1.0.5
revision=2 revision=2
build_style=python3-pep517 build_style=python3-pep517
hostmakedepends="python3-poetry-core" hostmakedepends="python3-poetry-core python3-pip"
depends="python3-pytest python3-Werkzeug" depends="python3-pytest python3-Werkzeug"
checkdepends="${depends} python3-MarkupSafe python3-requests" checkdepends="${depends} python3-MarkupSafe python3-requests"
short_desc="HTTP server for pytest" short_desc="HTTP server for pytest"
@ -15,7 +15,7 @@ distfiles="https://github.com/csernazs/pytest-httpserver/archive/refs/tags/${ver
checksum=932843df9fa584e6a664b2e7a21dec4ddf9507c235a78853f21e00b111352395 checksum=932843df9fa584e6a664b2e7a21dec4ddf9507c235a78853f21e00b111352395
do_check() { do_check() {
python3 -m pip install --no-deps --target test pytest_httpserver-${version}-*-*-*.whl python3 -m pip install --no-deps --target test dist/pytest_httpserver-${version}-py3-none-any.whl
PYTHONPATH=test python3 -m pytest tests PYTHONPATH=test python3 -m pytest tests
} }