python310Packages.django-anymail: Enable more tests

This commit is contained in:
Jonas Heinrich 2022-08-12 17:11:39 +02:00
parent 1b6fb6f647
commit 01b4f08f85

View file

@ -1,13 +1,14 @@
{ { lib
lib, , buildPythonPackage
buildPythonPackage, , fetchFromGitHub
fetchFromGitHub, , six
six, , requests
requests, , django
django, , boto3
boto3, , python
python, , mock
mock, , pytestCheckHook
, pytest-django
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -28,20 +29,26 @@ buildPythonPackage rec {
boto3 boto3
]; ];
checkInputs = [ mock ]; checkInputs = [
checkPhase = '' pytestCheckHook
substituteInPlace setup.py --replace "tests_require=[" "tests_require=[], #" pytest-django
export CONTINUOUS_INTEGRATION=1 mock
export ANYMAIL_SKIP_TESTS="sparkpost" ];
${python.interpreter} setup.py test
''; disabledTests = [
# Require networking
"test_debug_logging"
"test_no_debug_logging"
];
pythonImportsCheck = [ "anymail" ];
DJANGO_SETTINGS_MODULE = "tests.test_settings.settings_3_2";
# this package allows multiple email backends
# sparkpost is missing because it's not packaged yet
meta = with lib; { meta = with lib; {
description = "Django email backends and webhooks for Mailgun"; description = "Django email backends and webhooks for Mailgun";
homepage = "https://github.com/anymail/django-anymail"; homepage = "https://github.com/anymail/django-anymail";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ onny ];
}; };
} }