I'm not experienced in python but coming from Java I'm having a hard
time being forced to put all my tests for an app in one file.

I think I figured a workaround, with this directory structure:

tutorial1project > some_app_name > tests > __init__.py
tutorial1project > another_app_name > tests > __init__.py

Then in __init__.py, I have to:
from models_test import *
from views_test import *
etc... for every .py file in there.

I'm using unittest, not doctest.


It really bothers me that I don't know how to automatically include
every file under my tests directory, to run automatically. What's the
right way to create a suite?

--~--~---------~--~----~------------~-------~--~----~
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