Skip to content

Commit 18de4c9

Browse files
committed
doc
1 parent af8daa0 commit 18de4c9

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

docs/changelog.rst

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,24 @@ Changelog
44
3.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

1021
3.2.1
1122
-----
1223

13-
Fix automatic deployment to PyPI.
24+
* Fixed automatic deployment to PyPI.
1425

1526
3.2.0
1627
-----

docs/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
1515
extensions = [
1616
'sphinx.ext.doctest',
17+
'sphinx.ext.intersphinx',
1718
'pytestdocs',
1819
]
1920

@@ -60,3 +61,9 @@
6061

6162
# Output file base name for HTML help builder.
6263
htmlhelp_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+
}

docs/helpers.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ Example
264264

265265

266266
``mailoutbox``
267-
~~~~~~~~~~~~~~~~~~~~~~~~~
267+
~~~~~~~~~~~~~~
268268

269269
A clean email outbox to which Django-generated emails are sent.
270270

@@ -285,6 +285,12 @@ Example
285285
assert list(m.to) == ['[email protected]']
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+
288294
Automatic cleanup
289295
-----------------
290296

0 commit comments

Comments
 (0)