随笔分类 -  unittest

摘要:Code import unittest class SimplisticTest(unittest.TestCase): def test(self): a = 'a' b = 'a' self.assertEqual(a, b) Output macname@MacdeMacBook-Pro c 阅读全文
posted @ 2020-12-23 22:10 anobscureretreat 阅读(116) 评论(0) 推荐(0) 编辑
摘要:code import unittest from HTMLTestRunner import HTMLTestRunner class Test3(unittest.TestCase): @classmethod def setUpClass(self): print("execute setUp 阅读全文
posted @ 2020-12-18 18:45 anobscureretreat 阅读(147) 评论(0) 推荐(0) 编辑
摘要:test.py import unittest class Test1(unittest.TestCase): @classmethod def setUpClass(self): print("execute setUpClass1") @classmethod def tearDownClass 阅读全文
posted @ 2020-12-18 18:41 anobscureretreat 阅读(101) 评论(0) 推荐(0) 编辑