Implement --debug-mode option to set DEBUG to True prior to run tests#502
Implement --debug-mode option to set DEBUG to True prior to run tests#502adrysn wants to merge 7 commits intopytest-dev:masterfrom adrysn:master
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 |
blueyed
left a comment
There was a problem hiding this comment.
See above.
Also needs to be rebased.
pytest_django/plugin.py
Outdated
| help='Set DEBUG to true prior to run tests') | ||
| group._addoption('--django-debug', | ||
| action='store_true', dest='debug_mode', default=False, | ||
| help='Set DEBUG to true prior to run tests') |
There was a problem hiding this comment.
nitpick (no need to change it already): s/true/True ?!
|
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-debugis changed to--debug-modeto follow the naming in Django 1.11 (https://docs.djangoproject.com/en/dev/ref/django-admin/#cmdoption-test-debug-mode).--debug-modeis boolean-basis, not string-basis. For example,pytestruns tests in non-debug mode (DEBUG=False)pytest --debug-moderuns tests in debug mode (DEBUG=True)