summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2023-05-05 14:39:30 +0200
committerAlfredo Tupone <tupone@gentoo.org>2023-05-05 14:40:30 +0200
commit327963b2b52b13e6990003d9f9cf51615a9ea1e4 (patch)
tree86e83f81a06c2a2f05c7774bc7d3545930c29a78 /dev-python/django-debug-toolbar
parentgames-emulation/ppsspp: bump to 1.15.2 (diff)
downloadgentoo-327963b2b52b13e6990003d9f9cf51615a9ea1e4.tar.gz
gentoo-327963b2b52b13e6990003d9f9cf51615a9ea1e4.tar.bz2
gentoo-327963b2b52b13e6990003d9f9cf51615a9ea1e4.zip
dev-python/django-debug-toolbar: add test deps
Closes: https://bugs.gentoo.org/905737 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-python/django-debug-toolbar')
-rw-r--r--dev-python/django-debug-toolbar/django-debug-toolbar-4.0.0.ebuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/dev-python/django-debug-toolbar/django-debug-toolbar-4.0.0.ebuild b/dev-python/django-debug-toolbar/django-debug-toolbar-4.0.0.ebuild
index 18838ad2c3ec..45f737ea8197 100644
--- a/dev-python/django-debug-toolbar/django-debug-toolbar-4.0.0.ebuild
+++ b/dev-python/django-debug-toolbar/django-debug-toolbar-4.0.0.ebuild
@@ -18,6 +18,8 @@ SRC_URI="
https://github.com/jazzband/django-debug-toolbar/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
+IUSE="test"
+RESTRICT="!test? ( test )"
LICENSE="BSD"
SLOT="0"
@@ -27,6 +29,10 @@ RDEPEND="
dev-python/django[${PYTHON_USEDEP}]
"
+BDEPEND="test? (
+ dev-python/html5lib[${PYTHON_USEDEP}]
+)"
+
python_test() {
"${EPYTHON}" -m django test -v 2 --settings tests.settings \
|| die "Tests failed with ${EPYTHON}"