mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-14 17:43:11 -04:00
dev-python/pytest-sanic: treeclean
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -1 +0,0 @@
|
||||
DIST pytest-sanic-1.7.1.tar.gz 30888 BLAKE2B 24623e47fb05db9919cfd0b41468261697ac70c7bc3e47a3c6c86efadbddd3c80f2e6173eb109206472d0b639ecd20edd0cebb244bd96ed1d2ca10dd88924b5b SHA512 a55ffd1c878478bd42aad5dc023f83e880ead4fb8538a24d327bd0fb7f811e0d3679e49206835ee7f98ac0a02dedb05f6fa729252eab7972879c196c57e3f071
|
||||
@@ -1,19 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<longdescription lang="en">
|
||||
A pytest plugin for Sanic. It helps you to test your code asynchronously.
|
||||
|
||||
This plugin provides:
|
||||
|
||||
very easy testing with async coroutines
|
||||
common and useful fixtures
|
||||
asynchronous fixture support
|
||||
test_client/sanic_client for Sanic application
|
||||
test_server for Sanic application
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">yunstanford/pytest-sanic</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
DISTUTILS_USE_SETUPTOOLS="pyproject.toml"
|
||||
PYTHON_COMPAT=( python3_{8,9} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="a Pytest Plugin for Sanic"
|
||||
HOMEPAGE="
|
||||
https://pypi.python.org/pypi/pytest-sanic
|
||||
https://github.com/yunstanford/pytest-sanic
|
||||
"
|
||||
SRC_URI="https://github.com/yunstanford/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/async_generator-1.10[${PYTHON_USEDEP}]
|
||||
>=dev-python/httpx-0.15.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-5.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/websockets-8.1[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
test? ( >=dev-python/sanic-20.12.2[${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
# where is the conf.py file? make html can't find it either
|
||||
#distutils_enable_sphinx docs
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
pytest -vv \
|
||||
--deselect tests/test_client.py::test_fixture_sanic_client_get \
|
||||
--deselect tests/test_client.py::test_fixture_sanic_client_post \
|
||||
--deselect tests/test_client.py::test_fixture_sanic_client_put \
|
||||
--deselect tests/test_client.py::test_fixture_sanic_client_delete \
|
||||
--deselect tests/test_client.py::test_fixture_sanic_client_patch \
|
||||
--deselect tests/test_client.py::test_fixture_sanic_client_options \
|
||||
--deselect tests/test_client.py::test_fixture_sanic_client_head \
|
||||
--deselect tests/test_client.py::test_fixture_sanic_client_close \
|
||||
--deselect tests/test_client.py::test_fixture_sanic_client_passing_headers \
|
||||
--deselect tests/test_client.py::test_fixture_sanic_client_context_manager \
|
||||
--deselect tests/test_client.py::test_fixture_test_client_context_manager \
|
||||
|| die "Tests failed with ${EPYTHON}"
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user