django测试成功后数据被删除正常吗?我不是在谈论每次测试运行,让我举个例子:
class MyFooTest(TestCase):
def test_foo1(self):
# Some foo test code here
def test_foo2(self):
# Some foo test code here
Run Code Online (Sandbox Code Playgroud)
测试test_foo1时生成的数据在测试时不存在test_foo2,出现这种情况是否正常?