Re: django tests, mongoengine, and unique_with constraint

2014-02-25 Thread Loutre
It works if I call insure_indexes() method. I can't understand why. Is there to avoid it ? My code that works : > > from django.test import TestCase > from les_classiques.models import Author > import mongoengine > > > class DatabaseTest(TestCase): > def setUp(self): > db = mongoengi

Re: django tests, mongoengine, and unique_with constraint

2014-02-25 Thread Loutre
> > I realized that indexes have not been created by mongoengine : > db.author.getIndexes() [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "poesie.author", "name" : "_id_" } ] I'm s

Re: django tests, mongoengine, and unique_with constraint

2014-02-25 Thread Loutre
> > NB : I use Python 3.3.4, mongoengine 0.8.7, Django 1.6.2 and mongodb 2.0.6 > -- 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...@google