(self)
| 2077 | # RemovedInDjango70Warning. |
| 2078 | @ignore_warnings(category=RemovedInDjango70Warning) |
| 2079 | def test_fail_silently_conflict(self): |
| 2080 | msg = ( |
| 2081 | "fail_silently cannot be used with a connection. " |
| 2082 | "Pass fail_silently to get_connection() instead." |
| 2083 | ) |
| 2084 | with self.assertRaisesMessage(TypeError, msg): |
| 2085 | send_mail( |
| 2086 | "Subject", |
| 2087 | "Body", |
| 2088 | "from@example.com", |
| 2089 | ["to@example.com"], |
| 2090 | fail_silently=True, |
| 2091 | connection=mail.get_connection(), |
| 2092 | ) |
| 2093 | |
| 2094 | # RemovedInDjango70Warning. |
| 2095 | @ignore_warnings(category=RemovedInDjango70Warning) |
nothing calls this directly
no test coverage detected