Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send responses to py-httpx using pytest
- Loading branch information
Showing
4 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
PORTNAME= pytest-httpx | ||
PORTVERSION= 0.29.0 | ||
CATEGORIES= devel python | ||
MASTER_SITES= PYPI | ||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||
DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION} | ||
|
||
MAINTAINER= grembo@FreeBSD.org | ||
COMMENT= Send responses to py-httpx using pytest | ||
WWW= https://colin-b.github.io/pytest_httpx/ | ||
|
||
LICENSE= MIT | ||
LICENSE_FILE= ${WRKSRC}/LICENSE | ||
|
||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httpx>0:www/py-httpx@${PY_FLAVOR} \ | ||
${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \ | ||
${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=0:devel/py-pytest-asyncio@${PY_FLAVOR} | ||
|
||
USES= python | ||
USE_PYTHON= autoplist distutils | ||
|
||
TEST_ENV= PYTHONPATH=${WRKSRC}/src | ||
|
||
NO_ARCH= yes | ||
|
||
do-test: | ||
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts= | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TIMESTAMP = 1707746509 | ||
SHA256 (pytest_httpx-0.29.0.tar.gz) = ed08ed802e2b315b83cdd16f0b26cbb2b836c29e0fde5c18bc3105f1073e0332 | ||
SIZE (pytest_httpx-0.29.0.tar.gz) = 34103 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Send responses to HTTPX using pytest | ||
|
||
Once installed, httpx_mock fixture will make sure every httpx | ||
request will be replied to with user provided responses. |