Commit ea12328c by sanshi

增加断言描述

parent ae1276e3
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<dictionary name="Administrator"> <dictionary name="Administrator">
<words> <words>
<w>applicationids</w> <w>applicationids</w>
<w>departmentid</w>
<w>discoveryids</w> <w>discoveryids</w>
<w>evaltype</w> <w>evaltype</w>
<w>eventid</w> <w>eventid</w>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
<option name="ignoredErrors"> <option name="ignoredErrors">
<list> <list>
<option value="N803" /> <option value="N803" />
<option value="N802" />
</list> </list>
</option> </option>
</inspection_tool> </inspection_tool>
......
...@@ -61,12 +61,12 @@ class TestHostMonitorGet(object): ...@@ -61,12 +61,12 @@ class TestHostMonitorGet(object):
api.get_response() api.get_response()
return api.response return api.response
@allure.step("断言返回结果") @allure.step("断言返回结果 code")
def check_code(self, response, code): def check_code(self, response, code):
_code = UtilsResponse().get_code(response=response) _code = UtilsResponse().get_code(response=response)
assert _code == code assert _code == code
@allure.step("断言返回结果") @allure.step("断言返回结果 data")
def check_data(self, response, key, value, is_default): def check_data(self, response, key, value, is_default):
data = UtilsResponse().get_data(response=response) data = UtilsResponse().get_data(response=response)
for x, y in enumerate(data["list"]): for x, y in enumerate(data["list"]):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment