Re: How do I set up code profiling my application?

2007-02-10 Thread yary
I remember seeing a nice writeup on using nose with django, which is both a test runner and a code coverage tool. I can't find it at the moment, but there's these: http://code.google.com/p/nose-django/ http://code.djangoproject.com/wiki/CookBookTestingTools http://blogs.translucentcode.org/mick/2

Re: Fixing _get_many_to_many_sql_for_model

2007-02-09 Thread yary
Have it all working now, am about to update #2720 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe fro

Fixing _get_many_to_many_sql_for_model

2007-02-09 Thread yary
Hi, thanks for looking at this, it's a lot of words/work for a minor issue- getting db foreign key constraints working in an M2M edge case. I'm working on my first patch. It's actually a patch to a patch, #2720, which exposes an issue that came up with an inter-app M2M field. _get_many_to_many_sq

Re: How to run all django tests?

2006-11-17 Thread yary
Here's how to run all doctests in a directory: $ manage.py shell import re import os import string from doctest import testmod django_dir=r'/path/to/source/' trim=len(django_dir) dots=string.maketrans(r'\/','..') init=re.compile(r'\.?\.__init__') skip=('django.bin.make-messages','django.contrib

Re: How to run all django tests?

2006-11-16 Thread yary
Right, I already figured out the "runtests.py" suite, what I'm looking for now is running all the doctests (such as those in django/utils/text.py's get_valid_filename, get_text_list, smart_split - and many other of django's source files) --~--~-~--~~~---~--~~ You

How to run all django tests?

2006-11-16 Thread yary
Hello, Is there a handy one-liner to run all the doctests in django? (I checked out the trunk, have already run the unit tests with "runtests.py" in the root "tests" directory, getting all the modeltests and regressiontests. Looking to execute the rest of the tests before I start hacking around!)