-
Notifications
You must be signed in to change notification settings - Fork 347
Implement --debug-mode option to set DEBUG to True prior to run tests #502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #502 +/- ##
=========================================
+ Coverage 85.74% 85.85% +0.1%
=========================================
Files 32 32
Lines 1614 1626 +12
Branches 140 141 +1
=========================================
+ Hits 1384 1396 +12
Misses 177 177
Partials 53 53
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #502 +/- ##
==========================================
+ Coverage 91.92% 91.98% +0.05%
==========================================
Files 33 33
Lines 1660 1672 +12
Branches 143 144 +1
==========================================
+ Hits 1526 1538 +12
Misses 95 95
Partials 39 39
Continue to review full report at Codecov.
|
I would prefer a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above.
Also needs to be rebased.
pytest_django/plugin.py
Outdated
action='store_true', dest='debug_mode', default=False, | ||
help='Set DEBUG to true prior to run tests') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick (no need to change it already): s/true/True ?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll change it. Thanks.
It seems that original pull-request is active again (#463), so it would be appropriate that I close this pull-request. |
Follows #463 since it has been quite a while after the last discussion in the PR.
I just slightly changed @dulaccc's PR. Changes are:
--django-debug
is changed to--debug-mode
to follow the naming in Django 1.11 (https://docs.djangoproject.com/en/dev/ref/django-admin/#cmdoption-test-debug-mode).--debug-mode
is boolean-basis, not string-basis. For example,pytest
runs tests in non-debug mode (DEBUG=False
)pytest --debug-mode
runs tests in debug mode (DEBUG=True
)