class MyTestCaseA(TestCase):
def setUp(self):
# some setup here...
def test_case(self):
# some test
class MyTestCaseB(TestCase):
def setUp(self):
# some setup here...
def test_case(self):
# some test
I would need to share data between MyTestCaseA and MyTestCaseB. In my case, I want to share the path to a folder created for each execution of the test (through "manage.py test myapp"). In my case, I will take screenshots of the browser (using selenium) and I want to store all the screenshots taken in my various test cases in the same temporary folder.
If I create a temporary folder in the SetUp function, then each test case will have a different temporary folder.