Re: Django TestCase isolation: setUp vs setUpClass

2015-11-03 Thread Aymeric Augustin
Hello Samantha, As of Django 1.8 there is a built-in solution to this problem: https://docs.djangoproject.com/en/1.8/topics/testing/tools/#django.test.TestCase.setUpTestData Best regards, -- Aymer

Re: Django TestCase isolation: setUp vs setUpClass

2015-11-03 Thread Samantha Zeitlin
I'm having this same issue and was wondering if anyone ever came up with a good solution? Specifically, I'm wondering about using a tearDownClass() method after using Factory Boy objects in my setUpClass() methods? On Sunday, April 28, 2013 at 5:01:47 PM UTC-7, Russell Keith-Magee wrote: > > >

Re: Django TestCase isolation: setUp vs setUpClass

2013-04-28 Thread Russell Keith-Magee
On Mon, Apr 29, 2013 at 4:08 AM, Danilo Bargen wrote: > Hi all > > Today I ran across an issue while debugging Django tests. As stated in the > docs, all model changes in a TestCase that are done during the test are > reverted between the tests. This creates a nice and useful isolation of the > d

Django TestCase isolation: setUp vs setUpClass

2013-04-28 Thread Danilo Bargen
Hi all Today I ran across an issue while debugging Django tests. As stated in the docs, all model changes in a TestCase that are done during the test are reverted between the tests. This creates a nice and useful isolation of the different tests. Each time a test runs, the database looks just t