dev-python/django-otp: Fix running tests prior to install

Closes: https://bugs.gentoo.org/834107
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2022-02-26 20:33:19 +01:00
parent 8b880213b9
commit bc855bdc8f

View File

@@ -36,5 +36,6 @@ BDEPEND="
python_test() {
local -x PYTHONPATH=test:${PYTHONPATH}
local -x DJANGO_SETTINGS_MODULE=test_project.settings
django-admin test -v 2 django_otp || die "Tests fail with ${EPYTHON}"
"${EPYTHON}" -m django test -v 2 django_otp ||
die "Tests fail with ${EPYTHON}"
}