Overriding Settings before running any tests that loads fixtures.

2013-09-21 Thread Alex Thomas
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

Re: Overriding Settings before running any tests that loads fixtures.

2013-09-22 Thread Alex Thomas
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 i

Using Natural Keys With dumpdata / loaddata

2014-01-23 Thread Alex Thomas
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-ke

Re: Using Natural Keys With dumpdata / loaddata

2014-01-24 Thread Alex Thomas
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 stackov

Re: Using Natural Keys With dumpdata / loaddata

2014-01-24 Thread Alex Thomas
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 stackov