mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-10 19:57:09 +03:00
Testing mail service does not raise KeyError
* KeyError raised when cloud_provider was used twice in mark parametrization. * Tox isn't working properly for me (collecting 17,000 files; obviously neglecting tox.ini and/or pytest.ini)
This commit is contained in:
parent
0df8cfdb90
commit
c839862aef
|
@ -47,39 +47,20 @@ def context():
|
||||||
ids=lambda id: f"wnoise:{id[0]}-cloud:{id[1]}",
|
ids=lambda id: f"wnoise:{id[0]}-cloud:{id[1]}",
|
||||||
)
|
)
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"cloud_provider,mail_service",
|
"mail_service",
|
||||||
[
|
[
|
||||||
("AWS", "Amazon SES"),
|
"Amazon SES",
|
||||||
("AWS", "Mailgun"),
|
"Mailgun",
|
||||||
("AWS", "Mailjet"),
|
"MailJet",
|
||||||
("AWS", "Mandrill"),
|
"Mandrill",
|
||||||
("AWS", "Postmark"),
|
"Postmark",
|
||||||
("AWS", "Sendgrid"),
|
"Sendgrid",
|
||||||
("AWS", "SendinBlue"),
|
"SendinBlue",
|
||||||
("AWS", "SparkPost"),
|
"SparkPost",
|
||||||
("AWS", "Plain/Vanilla Django-Anymail"),
|
"Plain/Vanilla Django-Anymail"
|
||||||
|
|
||||||
("GCP", "Mailgun"),
|
|
||||||
("GCP", "Mailjet"),
|
|
||||||
("GCP", "Mandrill"),
|
|
||||||
("GCP", "Postmark"),
|
|
||||||
("GCP", "Sendgrid"),
|
|
||||||
("GCP", "SendinBlue"),
|
|
||||||
("GCP", "SparkPost"),
|
|
||||||
("GCP", "Plain/Vanilla Django-Anymail"),
|
|
||||||
|
|
||||||
("None", "Mailgun"),
|
|
||||||
("None", "Mailjet"),
|
|
||||||
("None", "Mandrill"),
|
|
||||||
("None", "Postmark"),
|
|
||||||
("None", "Sendgrid"),
|
|
||||||
("None", "SendinBlue"),
|
|
||||||
("None", "SparkPost"),
|
|
||||||
("None", "Plain/Vanilla Django-Anymail"),
|
|
||||||
|
|
||||||
# GCP or None (i.e. no cloud provider) + Amazon SES is not supported
|
# GCP or None (i.e. no cloud provider) + Amazon SES is not supported
|
||||||
],
|
],
|
||||||
ids=lambda id: f"cloud:{id[0]}-mail:{id[1]}",
|
ids=lambda id: f"mail:{id[0]}",
|
||||||
)
|
)
|
||||||
def context_combination(
|
def context_combination(
|
||||||
windows,
|
windows,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user