Re: Do Django TestCases reload fixtures on every method?

2010-02-21 Thread bobhaugen
On Feb 21, 9:43 am, Russell Keith-Magee wrote: > It sounds like what you actually want to write is one long test, > rather than N order dependent short tests. If you want to break things > into methods for the sake of clarity/code organization, you can - just > break the test_* entry method into s

Re: Do Django TestCases reload fixtures on every method?

2010-02-21 Thread Russell Keith-Magee
On Sun, Feb 21, 2010 at 11:20 PM, bobhaugen wrote: > I see here http://toastdriven.com/fresh/whats-wrong-django-slight-return/ > a claim that "TestCase-style tests truncate and reload all the > fixtures in your database on every test method". > > Is that true? Yes. From the docs [1]: """ This flu

Do Django TestCases reload fixtures on every method?

2010-02-21 Thread bobhaugen
I see here http://toastdriven.com/fresh/whats-wrong-django-slight-return/ a claim that "TestCase-style tests truncate and reload all the fixtures in your database on every test method". Is that true? If so, how would I create a series of test methods that build on each other: for example, one vie