Overriding Settings before running any tests that loads fixtures.
My basic problem is that I am trying to run a test that loads fixtures but I want to modify some settings before the fixtures are loaded. I tried adding override_settings decorator on the class but it does not see to take effect before the fixtures are loaded. I also posted the question here if you want more detail: http://stackoverflow.com/questions/18927935/what-is-the-order-of-execution-in-django-tests -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Re: Overriding Settings before running any tests that loads fixtures.
Instead of buying the book I finally found a solution. I posted to the original stackoverflow question: http://stackoverflow.com/questions/18927935/what-is-the-order-of-execution-in-django-tests On Saturday, September 21, 2013 7:47:58 PM UTC-4, Alex Thomas wrote: > > My basic problem is that I am trying to run a test that loads fixtures but > I want to modify some settings before the fixtures are loaded. > > I tried adding override_settings decorator on the class but it does not > see to take effect before the fixtures are loaded. > I also posted the question here if you want more detail: > http://stackoverflow.com/questions/18927935/what-is-the-order-of-execution-in-django-tests > > > > -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Using Natural Keys With dumpdata / loaddata
I have already created a stackoverflow question on this and have only received one (*incorrect*) response. For the sake of time I am just linking that question which has all the details. http://stackoverflow.com/questions/21151544/django-loaddata-with-natural-keys-not-querying-correct-forign-key -Alex -- 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/8a619cdb-1ac4-474b-8d6e-ef45825c418b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Using Natural Keys With dumpdata / loaddata
I tried adding unique=True to voyage_id but that did not have any effect. I later found somewhere in the docs that specifying in not necessary. So I am still in the same situation. On Thursday, January 23, 2014 4:03:34 PM UTC-5, Alex Thomas wrote: > > I have already created a stackoverflow question on this and have only > received one (*incorrect*) response. For the sake of time I am just > linking that question which has all the details. > > > http://stackoverflow.com/questions/21151544/django-loaddata-with-natural-keys-not-querying-correct-forign-key > > > -Alex > -- 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/af7f0eaa-725d-4825-9aaa-61c947bd33ea%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Using Natural Keys With dumpdata / loaddata
I tried adding unique=True to voyage_id but that did not have any effect. I later found somewhere in the docs that specifying is not necessary. So I am still in the same situation. On Thursday, January 23, 2014 4:03:34 PM UTC-5, Alex Thomas wrote: > > I have already created a stackoverflow question on this and have only > received one (*incorrect*) response. For the sake of time I am just > linking that question which has all the details. > > > http://stackoverflow.com/questions/21151544/django-loaddata-with-natural-keys-not-querying-correct-forign-key > > > -Alex > -- 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/aa2a7cac-d7fb-4855-a356-5731897dff24%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.