<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chango.git/tests/test_utils, branch devmain</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/chango.git/atom?h=devmain</id>
<link rel='self' href='http://cgit.adnoto.dev/chango.git/atom?h=devmain'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/'/>
<updated>2026-05-13T21:00:56Z</updated>
<entry>
<title>Fixed #35514 -- Implemented dictionary-based MAILERS.</title>
<updated>2026-05-13T21:00:56Z</updated>
<author>
<name>Mike Edmunds</name>
<email>medmunds@gmail.com</email>
</author>
<published>2026-04-01T23:59:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=0f581cd29d42d1b5ed1dafb67794c2f3ce6705c9'/>
<id>urn:sha1:0f581cd29d42d1b5ed1dafb67794c2f3ce6705c9</id>
<content type='text'>
See DEP 0018.

Added:
* MAILERS setting.
* django.core.mail.mailers dict-like EmailBackend factory.
* `using` argument to mail sending APIs.
* `sent_using` attribute to mail.outbox messages in locmem backend.
* MAILERS in startproject settings template, set to console backend.
* AdminLogHandler.using argument.
* BrokenLinkEmailsMiddleware.send_mail() method.

Updated:
* BaseEmailBackend to track the MAILERS alias used to construct it, and
  to report errors for unknown kwargs (OPTIONS).
* EmailBackend implementations to initialize from kwargs (OPTIONS) only
  when MAILERS is being used.
* smtp.EmailBackend to require `host` option and to default `port`
  option based on SSL/TLS options.
* SimpleTestCase setup to substitute the locmem backend for all defined
  MAILERS configurations.
* Django's tests that send mail to define MAILERS.

Deprecated:
* EMAIL_BACKEND and other backend-related EMAIL_* settings.
* mail.get_connection().
* The `connection`, `fail_silently`, `auth_user`, and `auth_password`
  arguments to mail functions.
* The EmailMessage.connection attribute.
* BaseEmailBackend support for `fail_silently`. Backends that support
  fail_silently (SMTP, console, file) now implement it directly.
* AdminEmailHandler.email_backend argument.

Removed undocumented features without deprecation:
* EmailMessage.get_connection() method. (send() now raises an error if a
  subclass has attempted to override it.)
* EmailMessage.send() no longer sets self.connection to the connection
  used for sending. (It still _uses_ a pre-existing self.connection.)
* AdminEmailHandler.connection() method. (Init now raises an error if a
  subclass has attempted to override it.)

Thanks to Natalia Bidart for shepherding DEP 0018 and for extensive
reviews and suggestions on the implementation.

Thanks to Jacob Rief for the initial implementation and multiple
iterations while refining the design.

Co-authored-by: Jacob Rief &lt;jacob.rief@gmail.com&gt;
</content>
</entry>
<entry>
<title>Refs #35514 -- Verified test runner swaps in testing email backend.</title>
<updated>2026-05-07T01:39:16Z</updated>
<author>
<name>Mike Edmunds</name>
<email>medmunds@gmail.com</email>
</author>
<published>2026-05-02T20:16:46Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=a276941334624994928c0547eebff4595c5e5532'/>
<id>urn:sha1:a276941334624994928c0547eebff4595c5e5532</id>
<content type='text'>
Added missing test to verify Django's test runner swaps in the locmem
EmailBackend during tests.

Extracted reusable mock_test_state() helper from
SetupTestEnvironmentTests.test_allowed_hosts().
</content>
</entry>
<entry>
<title>Fixed #36859 -- Made assertContains and assertNotContains idempotent for streaming responses.</title>
<updated>2026-03-16T20:44:40Z</updated>
<author>
<name>Baptiste Mispelon</name>
<email>baptiste.mispelon@torchbox.com</email>
</author>
<published>2026-01-12T13:51:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=0ed8d4e7d1029e1283b04f70d51d2af96ad85d6a'/>
<id>urn:sha1:0ed8d4e7d1029e1283b04f70d51d2af96ad85d6a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #36936 - Adjusted tests to set PYTHON_COLORS environment variable.</title>
<updated>2026-02-26T13:27:33Z</updated>
<author>
<name>Pete Rosenblum</name>
<email>prosenbl@gmail.com</email>
</author>
<published>2026-02-26T04:55:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=71d1e92e11093feb9a337f6d77078c5e75cbb92f'/>
<id>urn:sha1:71d1e92e11093feb9a337f6d77078c5e75cbb92f</id>
<content type='text'>
When "FORCE_COLOR" was set in the environment (such as in django-docker-box)
several test cases that rely on string comparisons against exception
messages or command line results would fail due to ANSI escape sequences
being present in the output. This change resolved the issue by setting
the "PYTHON_COLORS" environment variable to "0" for those specific tests,
which takes precendence over the presence of "FORCE_COLOR".
</content>
</entry>
<entry>
<title>Added various missing test skips observed on MongoDB.</title>
<updated>2026-02-10T21:06:49Z</updated>
<author>
<name>Tim Graham</name>
<email>timograham@gmail.com</email>
</author>
<published>2026-02-10T01:28:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=ef46215fdecb755c0b77c47fdb8fec670abb5e8b'/>
<id>urn:sha1:ef46215fdecb755c0b77c47fdb8fec670abb5e8b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Applied Black's 2026 stable style.</title>
<updated>2026-01-18T20:26:56Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2026-01-18T20:26:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=6cff02078799b7c683a0d39630d49ab4fe532e7c'/>
<id>urn:sha1:6cff02078799b7c683a0d39630d49ab4fe532e7c</id>
<content type='text'>
https://github.com/psf/black/releases/tag/26.1.0</content>
</entry>
<entry>
<title>Fixed #36487 -- Fixed logger error message with partial callbacks.</title>
<updated>2025-12-19T17:58:29Z</updated>
<author>
<name>Krishnaprasad MG</name>
<email>krishna@holvi.com</email>
</author>
<published>2025-12-15T14:39:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=7a2f35b1b755b20a1e4d290a88bf059e6897f798'/>
<id>urn:sha1:7a2f35b1b755b20a1e4d290a88bf059e6897f798</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #36589 -- Made assertTemplateUsed/NotUsed track full path for PartialTemplate.</title>
<updated>2025-09-15T20:45:13Z</updated>
<author>
<name>Caitie Baca</name>
<email>caitie.baca@powereng.com</email>
</author>
<published>2025-09-11T20:06:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=0e0b4214c350da9b627a67987b13ec334e1de033'/>
<id>urn:sha1:0e0b4214c350da9b627a67987b13ec334e1de033</id>
<content type='text'>
Previously, assertTemplateUsed only matched partial names, ignoring
the template origin. This caused assertions on partials specified by
origin ("template.html#partial") to fail. Refs #36410.
</content>
</entry>
<entry>
<title>Fixed test_utils.tests.HTMLEqualTests.test_parsing_errors following Python's HTMLParser fixed parsing.</title>
<updated>2025-08-13T02:04:09Z</updated>
<author>
<name>Natalia</name>
<email>124304+nessita@users.noreply.github.com</email>
</author>
<published>2025-07-21T18:23:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=e4515dad7a6d953c0bd2414127ba36e1446ff41a'/>
<id>urn:sha1:e4515dad7a6d953c0bd2414127ba36e1446ff41a</id>
<content type='text'>
Further details about Python changes can be found in:
https://github.com/python/cpython/commit/0243f97cbadec8d985e63b1daec5d1cbc850cae3.

Thank you Clifford Gama for the thorough review!
</content>
</entry>
<entry>
<title>Fixed #35728 -- Computed error messages in assertions only on test failures.</title>
<updated>2025-07-18T08:16:59Z</updated>
<author>
<name>Clifford Gama</name>
<email>cliffygamy@gmail.com</email>
</author>
<published>2025-04-18T17:55:59Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=449b9f9aeeaa3a1529d2c29a9a43e87350177559'/>
<id>urn:sha1:449b9f9aeeaa3a1529d2c29a9a43e87350177559</id>
<content type='text'>
Performance regression in 1dae65dc63ae84be5002c37b4ddae0b9220e8808.

Thanks to Adam Johnson for the report.
</content>
</entry>
</feed>
