MCPcopy
hub / github.com/django/django / test_fail_silently_deprecated

Method test_fail_silently_deprecated

tests/mail/tests.py:1889–1894  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1887
1888 # RemovedInDjango70Warning.
1889 def test_fail_silently_deprecated(self):
1890 email = EmailMessage(to=["to@example.com"])
1891 with self.assertWarnsMessage(
1892 RemovedInDjango70Warning, FAIL_SILENTLY_ARG_WARNING
1893 ):
1894 email.send(fail_silently=True)
1895
1896
1897# RemovedInDjango70Warning: Move override_settings and additional test cases to

Callers

nothing calls this directly

Calls 3

sendMethod · 0.95
EmailMessageClass · 0.90
assertWarnsMessageMethod · 0.80

Tested by

no test coverage detected