forked from pytest-dev/pytest-django
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
only enable main plugin if the settings module is explicitly set
we also add the ability to set it in .ini files with ,---- | [pytest] | django_settings_module = ... `---- Also: - get rid of the --noinput command line argument - merge plugin.pytest_configure with __init__'s configure
- Loading branch information
Showing
3 changed files
with
25 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,3 @@ | |
|
||
sys.path.insert(0, '') | ||
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' | ||
pytest_plugins = ['django'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters