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
4
4
3.3.0 (unreleased)
5
5
------------------
6
6
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)
9
20
10
21
3.2.1
11
22
-----
12
23
13
- Fix automatic deployment to PyPI.
24
+ * Fixed automatic deployment to PyPI.
14
25
15
26
3.2.0
16
27
-----
Original file line number Diff line number Diff line change 14
14
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
15
15
extensions = [
16
16
'sphinx.ext.doctest' ,
17
+ 'sphinx.ext.intersphinx' ,
17
18
'pytestdocs' ,
18
19
]
19
20
60
61
61
62
# Output file base name for HTML help builder.
62
63
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
+ }
Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ Example
264
264
265
265
266
266
``mailoutbox ``
267
- ~~~~~~~~~~~~~~~~~~~~~~~~~
267
+ ~~~~~~~~~~~~~~
268
268
269
269
A clean email outbox to which Django-generated emails are sent.
270
270
@@ -285,6 +285,12 @@ Example
285
285
assert list(m.to) == ['[email protected] ']
286
286
287
287
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
+
288
294
Automatic cleanup
289
295
-----------------
290
296
You can’t perform that action at this time.
0 commit comments