On Jan 19, 7:21 am, Olivier Guilyardi <m...@xung.org> wrote: > On 01/18/2010 10:04 PM, Ramiro Morales wrote: > > > > > > > On Mon, Jan 18, 2010 at 4:40 PM, Olivier Guilyardi <m...@xung.org> wrote: > >> Hi, > > >> I'm trying to split tests.py into individual files into a tests/ > >> subfolder, but > >> that doesn't work. > > >> I correctly import everything from within tests/__init__.py, as previously > >> said > >> on this mailing list: > >>http://groups.google.com/group/django-users/browse_frm/thread/10cfd65... > > >> But that doesn't work. I tested on Django 1.0.2 and SVN r12255, same thing. > > >> Any clue? > > > What do you mean with "doesn't work" ?. Do you get a traceback? No > > error but your > > tests aren't being run?, ... > > No error, the tests are not run. When splitting, it says: > > Ran 0 tests in 0.000s > > Instead of the following with tests.py: > > Ran 14 tests in 1.875s > > > Try with SVN r12254 because the test infrastructure was refactored in r12255 > > and it still has some small rough edges. > > I reverted back to r12254, same problem.
Drop into ./manage.py shell, and make sure you can import app.tests: errors doing this will silently fail. (May or may not solve your problem, but it has happened to me about a dozen times today: I split my tests.py into: tests/ __init__.py integration/ __init__.py *.py unit/ __init__.py *.py and so on.) Matt.
-- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.