Re: How to test patch

2012-10-28 Thread Dominic Rodger
Another long time user here (at some point I'd love to make the jump to contributor, just need to find more time) - out of interest, is there a reason we don't use Travis? I wonder if that might help those with commit access, since pre-tested pull requests would mean you could have confidence t

Form assets and static file storage

2015-06-09 Thread Dominic Rodger
I recently came across a problem when using ManifestStaticFilesStorage on an app with form media, which the documentation doesn't seem to address. I'm posting here rather that on django-users, since I think we ought to at least document how to fix it, or preferably come up with a better way of

Making assertNumQueries more useful by printing the list of queries executed on failure

2013-11-14 Thread Dominic Rodger
Currently, when assertNumQueries fails, the output is perhaps less helpful than it might be: Traceback (most recent call last): File "/home/dom/.virtualenvs/kanisa/src/kanisa/kanisa/tests/views/public.py", line 31, in test_kanisa_root_view [banner1.pk, banner2.pk, banner3.pk, banner5.pk,

Re: Making assertNumQueries more useful by printing the list of queries executed on failure

2013-11-18 Thread Dominic Rodger
Filed as https://code.djangoproject.com/ticket/21462#ticket. On Friday, November 15, 2013 8:28:09 PM UTC, Aymeric Augustin wrote: > > On 15 nov. 2013, at 18:38, gavi...@gmail.com wrote: > > Every time I get a failure on one of these types of tests I go in and edit > the code to print out the que