python3Packages.django-auditlog: fix tests

This commit is contained in:
Sizhe Zhao
2025-05-20 13:07:42 +08:00
parent 8f4ca27554
commit 21e09dce2a
@@ -50,11 +50,13 @@ buildPythonPackage rec {
checkPhase = ''
runHook preCheck
cd auditlog_tests
# strip escape codes otherwise tests fail
# see https://github.com/jazzband/django-auditlog/issues/644
TEST_DB_USER=$PGUSER \
TEST_DB_HOST=$PGHOST \
${python.interpreter} runtests.py | cat
${python.interpreter} ./manage.py test | cat
cd ..
runHook postCheck
'';