Hi,
I'm trying to port my project to use Django 1.7. Everything is fine except 
1 thing. Models inside tests folders.
Django 1.7 new migrations run *migrate*  command internally. Before *syncdb 
*was ran. That means if a model is not included in migrations - it won't be 
populated to DB (and also to test DB). That's exactly what I'm experiencing 
right now.

What I do is:

   - In my /app/tests/models.py I have dummy model: class TestBaseImage(
   BaseImage): pass
   - All it does is to inherit from an *abstract **BaseImage* model.
   - Then in tests I create instances of that dummy model to test it.
   
The problem is that it doesn't work any more. It's not included in 
migrations (that's obvious as I don't want to keep my test code in 
production DB). Running my tests causes DB error saying that *table does 
not exist*. That makes sense as it's not included in migrations.

Is there any way to make it work with new migrations system? I can't find a 
way to "fix" that.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2236bfb7-7676-4caf-a6b1-9438ec5bba93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to