摘要:
import pytestimport requestsclass TestCase(object): def test_case_01(self): """再执行三""" assert 1 def test_case_02(self): """再执行六""" assert {"title":"v2 阅读全文
posted @ 2020-01-20 19:08
干it的小张
阅读(248)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-01-20 18:32
干it的小张
阅读(136)
评论(0)
推荐(0)
摘要:
import pytestimport requestsclass TestCase(object): def test_case_01(self): assert 1 def test_case_02(self): assert {"title":"v2ex"} != {"title":"V2EX 阅读全文
posted @ 2020-01-20 17:54
干it的小张
阅读(201)
评论(0)
推荐(0)
摘要:
import pytestimport requests#定义预期结果:expect = {"title":"V2EX"}class TestCase(object): def test_case_01(self): assert 1 def test_case_02(self): assert { 阅读全文
posted @ 2020-01-20 13:25
干it的小张
阅读(301)
评论(0)
推荐(0)
摘要:
import pytestimport requestsimport sys#建立数据库连接:def setup_function(): print("建立数据库连接成功...")def test_case_01(): assert 1#断开数据库连接:def teardown_function() 阅读全文
posted @ 2020-01-20 13:05
干it的小张
阅读(253)
评论(0)
推荐(0)

浙公网安备 33010602011771号