On 4/3/08, Tony <[EMAIL PROTECTED]> wrote:
>
>  Hi,
>
>  It might just be me not seeing the obvious but I'm sure in the django
>  documentation it says that if you type the command "python manage.py
>  test" it will "Looking for unit tests and doctests in the models.py
>  and tests.py files in each installed application" and run those tests?
>  Or am I totally wrong?

Correct.

>  I have written doctests in models.py and they run fine when I run the
>  command, but my test.py files doesn't run at all. Have I missed
>  anything?

Yes. The file needs to be called "tests.py", not "test.py". :-)

For the record (although it sounds like you're doing this), the
tests.py module needs to be in the application module - i.e., in the
same directory as models.py

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to