unittest跳过
import unittest
class TestCase01(unittest.TestCase):
@unittest.skip(reason="跳过")
def test_case_01(self):
self.assertTrue(1)
@unittest.skipIf(condition=1, reason="条件为真跳过用例")
def test_case_02(self):
self.assertTrue(1)
if __name__ == '__main__':
unittest.main()