MCPcopy
hub / github.com/django/django / test_using_connection_conflict

Method test_using_connection_conflict

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

Source from the content-addressed store, hash-verified

2314 # RemovedInDjango70Warning.
2315 @ignore_warnings(category=RemovedInDjango70Warning)
2316 def test_using_connection_conflict(self):
2317 msg = "'connection' is not compatible with 'using'."
2318 with self.assertRaisesMessage(TypeError, msg):
2319 send_mass_mail(
2320 [("Subject1", "Content1", "from1@example.com", ["to1@example.com"])],
2321 connection=object(),
2322 using="default",
2323 )
2324
2325 # RemovedInDjango70Warning.
2326 @ignore_warnings(category=RemovedInDjango70Warning)

Callers

nothing calls this directly

Calls 2

send_mass_mailFunction · 0.90
assertRaisesMessageMethod · 0.80

Tested by

no test coverage detected