File tree Expand file tree Collapse file tree 3 files changed +28
-4
lines changed Expand file tree Collapse file tree 3 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,24 @@ Changelog
443.3.0 (unreleased)
55------------------
66
7- * Fix test for classmethod with Django TestCases (#597, #598).
8- * Fix RemovedInPytest4Warning: MarkInfo objects are deprecated (#596, #603)
7+ Features
8+ ^^^^^^^^
9+
10+ * Added new fixtures ``django_mail_dnsname `` and ``django_mail_patch_dns ``,
11+ used by ``mailoutbox `` to monkeypatch the ``DNS_NAME `` used in
12+ :py:mod: `django.core.mail ` to improve performance and
13+ reproducibility.
14+
15+ Bug fixes
16+ ^^^^^^^^^
17+
18+ * Fixed test for classmethod with Django TestCases (#597, #598).
19+ * Fixed RemovedInPytest4Warning: MarkInfo objects are deprecated (#596, #603)
920
10213.2.1
1122-----
1223
13- Fix automatic deployment to PyPI.
24+ * Fixed automatic deployment to PyPI.
1425
15263.2.0
1627-----
Original file line number Diff line number Diff line change 1414# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
1515extensions = [
1616 'sphinx.ext.doctest' ,
17+ 'sphinx.ext.intersphinx' ,
1718 'pytestdocs' ,
1819]
1920
6061
6162# Output file base name for HTML help builder.
6263htmlhelp_basename = 'pytest-djangodoc'
64+
65+ intersphinx_mapping = {
66+ 'python' : ('https://docs.python.org/3' , None ),
67+ 'django' : ('http://docs.djangoproject.com/en/dev/' ,
68+ 'http://docs.djangoproject.com/en/dev/_objects/' ),
69+ }
Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ Example
264264
265265
266266``mailoutbox ``
267- ~~~~~~~~~~~~~~~~~~~~~~~~~
267+ ~~~~~~~~~~~~~~
268268
269269A clean email outbox to which Django-generated emails are sent.
270270
@@ -285,6 +285,12 @@ Example
285285 assert list(m.to) == ['to@example.com']
286286
287287
288+ This uses the ``django_mail_patch_dns `` fixture, which patches
289+ ``DNS_NAME `` used by :py:mod: `django.core.mail ` with the value from
290+ the ``django_mail_dnsname `` fixture, which defaults to
291+ "fake-tests.example.com".
292+
293+
288294Automatic cleanup
289295-----------------
290296
You can’t perform that action at this time.
0 commit comments