Re: [Django] #21739: When running tests, the fixture loading process has verbosity = 0 hardcoded

2014-02-18 Thread Django
#21739: When running tests, the fixture loading process has verbosity = 0 
hardcoded
-+-
 Reporter:  camilo.lopez.a@… |Owner:  Olek
 Type:  Bug  |   Status:  assigned
Component:  Testing framework|  Version:  1.6
 Severity:  Normal   |   Resolution:
 Keywords:  test fixture | Triage Stage:  Accepted
  verbosity  |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-

Comment (by ramiro):

 We've used and do currently have stealth options in management commands
 (flush, sql) so we have a precedent of that kind of options but so far
 we've used them to help in internal testing of infrastructure and not as
 something we allow the final user to control from the command line.

 (btw, the reset_sequences stealth option of flush seems to be not used
 anymore.)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/082.b3bb9a971ebab95f0ffabffe620640be%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #21739: When running tests, the fixture loading process has verbosity = 0 hardcoded

2014-02-18 Thread Django
#21739: When running tests, the fixture loading process has verbosity = 0 
hardcoded
-+-
 Reporter:  camilo.lopez.a@… |Owner:  Olek
 Type:  Bug  |   Status:  assigned
Component:  Testing framework|  Version:  1.6
 Severity:  Normal   |   Resolution:
 Keywords:  test fixture | Triage Stage:  Accepted
  verbosity  |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-
Description changed by ramiro:

Old 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?

New 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?

--

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/082.53f2589b0b87abc04ef806dc37d46d12%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #21739: When running tests, the fixture loading process has verbosity = 0 hardcoded

2014-02-15 Thread Django
#21739: When running tests, the fixture loading process has verbosity = 0 
hardcoded
-+-
 Reporter:  camilo.lopez.a@… |Owner:  Olek
 Type:  Bug  |   Status:  assigned
Component:  Testing framework|  Version:  1.6
 Severity:  Normal   |   Resolution:
 Keywords:  test fixture | Triage Stage:  Accepted
  verbosity  |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-

Comment (by Olek):

 Working (but ugly) solution was moved into:
 https://github.com/django/django/pull/2299

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/082.77999219813ffae6b3f6baf38e15465e%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #21739: When running tests, the fixture loading process has verbosity = 0 hardcoded

2014-02-15 Thread Django
#21739: When running tests, the fixture loading process has verbosity = 0 
hardcoded
-+-
 Reporter:  camilo.lopez.a@… |Owner:  Olek
 Type:  Bug  |   Status:  assigned
Component:  Testing framework|  Version:  1.6
 Severity:  Normal   |   Resolution:
 Keywords:  test fixture | Triage Stage:  Accepted
  verbosity  |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-
Changes (by Olek):

 * owner:  anonymous => Olek


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/082.1682135463a72dbc5d021f03d77ad30a%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #21739: When running tests, the fixture loading process has verbosity = 0 hardcoded

2014-02-15 Thread Django
#21739: When running tests, the fixture loading process has verbosity = 0 
hardcoded
-+-
 Reporter:  camilo.lopez.a@… |Owner:  anonymous
 Type:  Bug  |   Status:  assigned
Component:  Testing framework|  Version:  1.6
 Severity:  Normal   |   Resolution:
 Keywords:  test fixture | Triage Stage:  Accepted
  verbosity  |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-
Changes (by anonymous):

 * status:  new => assigned
 * owner:  nobody => anonymous


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/082.292c0fd7b8daa2ec1848e15285cf1502%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #21739: When running tests, the fixture loading process has verbosity = 0 hardcoded

2014-01-07 Thread Django
#21739: When running tests, the fixture loading process has verbosity = 0 
hardcoded
-+-
 Reporter:  camilo.lopez.a@… |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Testing framework|  Version:  1.6
 Severity:  Normal   |   Resolution:
 Keywords:  test fixture | Triage Stage:  Accepted
  verbosity  |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-

Comment (by camilo.lopez.a@…):

 If I give a command verbosity = X, I expect every procedure inside it to
 use that level of verbosity. If not, you will break consistency.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/082.47e00651f5ebc2dcea15eb34cb3afb17%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #21739: When running tests, the fixture loading process has verbosity = 0 hardcoded

2014-01-07 Thread Django
#21739: When running tests, the fixture loading process has verbosity = 0 
hardcoded
-+-
 Reporter:  camilo.lopez.a@… |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Testing framework|  Version:  1.6
 Severity:  Normal   |   Resolution:
 Keywords:  test fixture | Triage Stage:  Accepted
  verbosity  |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-
Changes (by claudep):

 * stage:  Unreviewed => Accepted


Comment:

 I'm not sure it's a good idea to make fixture loading inherit `verbosity`
 from the `test` command. However, failure during loading fixtures should
 be loudly visible.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/082.4ef9eb5c9f256d9c6b97cf825186a9d9%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #21739: When running tests, the fixture loading process has verbosity = 0 hardcoded

2014-01-07 Thread Django
#21739: When running tests, the fixture loading process has verbosity = 0 
hardcoded
-+-
 Reporter:  camilo.lopez.a@… |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Testing framework|  Version:  1.6
 Severity:  Normal   |   Resolution:
 Keywords:  test fixture | Triage Stage:
  verbosity  |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by mjtamlyn):

 models.py will not be required in 1.7. That said, the ticket is still a
 reasonable issue.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/082.418615ae3b9e1e704416c4ef27b267f2%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #21739: When running tests, the fixture loading process has verbosity = 0 hardcoded

2014-01-07 Thread Django
#21739: When running tests, the fixture loading process has verbosity = 0 
hardcoded
-+-
 Reporter:  camilo.lopez.a@… |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Testing framework|  Version:  1.6
 Severity:  Normal   |   Resolution:
 Keywords:  test fixture | Triage Stage:
  verbosity  |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by camilo.lopez.a@…):

 The issue with the fixtures was that I hadn't a models.py file in my app,
 so all the fixtures where not recognized and it was filing silently.
 I discovered the issue debugging on the source code of Django. I changed
 verbosity from 0 to 2 and was able to realise what was going on.

 The models.py thing should be documented or better, change that behavior
 to just read from installed apps as one will expect.
 call_command should inherit verbosity from the test command.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/082.7a545402ebe3f3e071a947b98a171734%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #21739: When running tests, the fixture loading process has verbosity = 0 hardcoded

2014-01-07 Thread Django
#21739: When running tests, the fixture loading process has verbosity = 0 
hardcoded
-+-
 Reporter:  camilo.lopez.a@… |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Testing framework|  Version:  1.6
 Severity:  Normal   |   Resolution:
 Keywords:  test fixture | Triage Stage:
  verbosity  |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by claudep):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 Could you tell us what the issue with your fixtures is, and what is the
 output when verbosity > 0?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/082.5719df6fd356df583f1bd6b7478268f3%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Django] #21739: When running tests, the fixture loading process has verbosity = 0 hardcoded

2014-01-06 Thread Django
#21739: When running tests, the fixture loading process has verbosity = 0 
hardcoded
---+
 Reporter:  camilo.lopez.a@…   |  Owner:  nobody
 Type:  Bug| Status:  new
Component:  Testing framework  |Version:  1.6
 Severity:  Normal |   Keywords:  test fixture verbosity
 Triage Stage:  Unreviewed |  Has patch:  0
Easy pickings:  0  |  UI/UX:  0
---+
 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?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.cefae187f159de915f2259ce88b0a772%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.