Opened 11 years ago
Last modified 8 months ago
#21739 new Bug
When running tests, the fixture loading process has verbosity = 0 hardcoded — at Initial Version
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Testing framework | Version: | 1.6 |
Severity: | Normal | Keywords: | test fixture verbosity |
Cc: | camilo.lopez.a@… | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description
Hi,
On django 1.6, I'm running the command:
python manage.py test -v 2
One of my tests has a fixture and it seems that there is an issue with that, because no data is loaded and it's failing silently.
I was looking at the code of /django/test/testcase.py and I found this:
call_command('loaddata', *self.fixtures,
{'verbosity': 0, 'database': db_name, 'skip_validation': True})
So, verbosity is 0, hardcoded.
Shouldn't inherit the verbosity from the test command in manage.py somehow?