File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ Compatibility
39
39
40
40
* Settings defined in `pytest.ini `/`tox.ini `/`setup.cfg ` used to override
41
41
`DJANGO_SETTINGS_MODULE ` defined in the environment. Previously the order was
42
- undocmented . Now, instead the settings from the environment will be used
43
- instead. If you previously relied on overriding the enviornment variable, you
44
- can instead specify `addopts = --ds=yourtestsettings ` in the ini-file which
45
- will use the test settings. See `PR #199
42
+ undocumented . Now, instead the settings from the environment will be used
43
+ instead. If you previously relied on overriding the environment variable,
44
+ you can instead specify `addopts = --ds=yourtestsettings ` in the ini-file
45
+ which will use the test settings. See `PR #199
46
46
<https://github.com/pytest-dev/pytest-django/pull/199> `_.
47
47
48
48
* Support for Django 1.9.
Original file line number Diff line number Diff line change @@ -41,9 +41,12 @@ Example contents of pytest.ini::
41
41
Order of choosing settings
42
42
--------------------------
43
43
44
- If `--ds `, the environment variable and the pytest.ini configuration is used at
45
- the same time, pytest-django will first prefer using settings from the command
46
- line option `--ds `, then the environment variable and last the pytest.ini.
44
+ When the command option `--ds `, the environment variable and the pytest.ini
45
+ configuration is used at the same time, pytest-django will prefer using
46
+ settings from the command line option `--ds `, then the environment variable and
47
+ last the pytest.ini.
48
+ You can use `addopts = --ds=yourtestsettings ` in your pytest configuration
49
+ to automatically add the `--ds ` option.
47
50
48
51
Using django-configurations
49
52
---------------------------
You can’t perform that action at this time.
0 commit comments