【发布时间】:2011-08-15 12:13:29
【问题描述】:
在测试执行并更改测试数据库表的情况下,每次测试后数据库表会恢复到原始状态吗?如果不是,我应该如何知道测试的执行顺序,以便预测数据库表的状态。例如,
class SimpleTest(Testcase):
def test_insert(self):
# testing to see if data correctly added to database
def test_other_thing(self):
# does insered data available here?
【问题讨论】:
标签: django unit-testing testing