@@ -13,8 +13,8 @@ Bug fixes
13
13
14
14
Features
15
15
^^^^^^^^
16
- * Added a new option `--migrations ` to negate a default usage of
17
- `--nomigrations `.
16
+ * Added a new option `` --migrations ` ` to negate a default usage of
17
+ `` --nomigrations ` `.
18
18
19
19
* The previously internal pytest-django fixture that handles database creation
20
20
and setup has been refactored, refined and made a public API.
@@ -36,15 +36,15 @@ Compatibility
36
36
37
37
* pytest-django no longer supports Python 2.6.
38
38
39
- * Specifying the `DJANGO_TEST_LIVE_SERVER_ADDRESS ` environment variable is no
40
- longer supported. Use `DJANGO_LIVE_TEST_SERVER_ADDRESS ` instead.
39
+ * Specifying the `` DJANGO_TEST_LIVE_SERVER_ADDRESS ` ` environment variable is no
40
+ longer supported. Use `` DJANGO_LIVE_TEST_SERVER_ADDRESS ` ` instead.
41
41
42
42
* Ensuring accidental database access is now stricter than before. Previously
43
43
database access was prevented on the cursor level. To be safer and prevent
44
44
more cases, it is now prevented at the connection level. If you previously
45
45
had tests which interacted with the databases without a database cursor, you
46
46
will need to mark them with the :func: `pytest.mark.django_db ` marker or
47
- request the `db ` fixture.
47
+ request the `` db ` ` fixture.
48
48
49
49
* The previously undocumented internal fixtures ``_django_db_setup ``,
50
50
``_django_cursor_wrapper `` have been removed in favour of the new public
@@ -71,7 +71,7 @@ and Python 3.5
71
71
72
72
Features
73
73
^^^^^^^^
74
- * `--fail-on-template-vars ` - fail tests for invalid variables in templates.
74
+ * `` --fail-on-template-vars ` ` - fail tests for invalid variables in templates.
75
75
Thanks to Johannes Hoppe for idea and implementation. Thanks Daniel Hahler
76
76
for review and feedback.
77
77
@@ -82,18 +82,18 @@ Bug fixes
82
82
discussions. Fixes `issue #183
83
83
<https://github.com/pytest-dev/pytest-django/issues/183> `_.
84
84
85
- * Call `setUpClass() ` in Django `TestCase ` properly when test class is
85
+ * Call `` setUpClass() `` in Django `` TestCase ` ` properly when test class is
86
86
inherited multiple places. Thanks to Benedikt Forchhammer for report and
87
87
initial test case. Fixes `issue #265 <https://github.com/pytest-dev/pytest-django/issues/265 >`_.
88
88
89
89
Compatibility
90
90
^^^^^^^^^^^^^
91
91
92
- * Settings defined in `pytest.ini `/` tox.ini `/` setup.cfg ` used to override
93
- `DJANGO_SETTINGS_MODULE ` defined in the environment. Previously the order was
92
+ * Settings defined in `` pytest.ini ``/`` tox.ini ``/`` setup.cfg ` ` used to override
93
+ `` DJANGO_SETTINGS_MODULE ` ` defined in the environment. Previously the order was
94
94
undocumented. Now, instead the settings from the environment will be used
95
95
instead. If you previously relied on overriding the environment variable,
96
- you can instead specify `addopts = --ds=yourtestsettings ` in the ini-file
96
+ you can instead specify `` addopts = --ds=yourtestsettings ` ` in the ini-file
97
97
which will use the test settings. See `PR #199
98
98
<https://github.com/pytest-dev/pytest-django/pull/199> `_.
99
99
0 commit comments