On 22/09/2013 9:47am, 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.

Check out Two Scoops of Django - there is a whole chapter on this.

Esssntially you need some test settings which only run with your tests. It is done by importing your main settings and overriding those of interest when testing.



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.

--
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.

Reply via email to