我需要为我的测试设置执行顺序,因为我需要在其他数据之前验证一些数据。可以设置订单吗?
class OneTestCase(unittest.TestCase):
def setUp(self):
# something to do
def test_login (self):
# first test
pass
def test_other (self):
# any order after test_login
def test_othermore (self):
# any order after test_login
if __name__ == '__main__':
unittest.main()