On Wed, Jun 24, 2009 at 5:17 PM, patrickk<sehmasch...@gmail.com> wrote:
>
> just to avoid any misunderstanding:
> when I´m running one test with "... test
> myapp.BaseTest.test_fileobject" for example, the output is "... runs 1
> test" - but before that statement there´s a lot of "create table ...",
> "installing index ..." stuff. and that´s what I´m confused about.

Ah. That would have been useful to know in the beginning. As noted by
Kenneth - that log of info isn't telling you the tests that are
running. The final "3 tests run" is the real statistic you need to
look at.

> just wanted to make sure that my assumption is right: when I´m running
> this one (very simplified) test, the "create table ..." and
> "installing index ..." should NOT be there, right? I´ve just read my
> first question again and I noticed that I didn´t explain the problem
> very well.

Your assumption is incorrect. It's easy to build a test case to prove
why: consider the case where a model in myapp has a foreign key on a
model in otherapp. When you run the tests for 'just myapp', you still
need the tables for otherapp.

We _could_ theoretically prune the sync list - if we parsed the
dependency tree, we could probably strip out unnecessary models, but
the sync process doesn't actually take that long in the grand scheme
of things, and the risk of getting the strip-down process wrong is
quite high. So, we've opted not to pursue this option.

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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to