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,
buildPythonPackage,
fetchFromGitHub,
six,
requests,
django,
boto3,
python,
mock,
{ lib
, buildPythonPackage
, fetchFromGitHub
, six
, requests
, django
, boto3
, python
, mock
, pytestCheckHook
, pytest-django
}:
buildPythonPackage rec {
@ -28,20 +29,26 @@ buildPythonPackage rec {
boto3
];
checkInputs = [ mock ];
checkPhase = ''
substituteInPlace setup.py --replace "tests_require=[" "tests_require=[], #"
export CONTINUOUS_INTEGRATION=1
export ANYMAIL_SKIP_TESTS="sparkpost"
${python.interpreter} setup.py test
'';
checkInputs = [
pytestCheckHook
pytest-django
mock
];
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; {
description = "Django email backends and webhooks for Mailgun";
homepage = "https://github.com/anymail/django-anymail";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ onny ];
};
}