Commit a4395841 by sanshi

资产类型

parent e3ae33fe
...@@ -23,7 +23,7 @@ import allure ...@@ -23,7 +23,7 @@ import allure
@allure.feature("测试模块:hosttype.create") @allure.feature("测试模块:hosttype.create")
class TestHostTypeCreate(object): class TestHostTypeCreate(object):
log = UtilsLog() log = UtilsLog()
env = CaseBase().app_environment env = CaseBase().environment_test
host = env["host"] host = env["host"]
db_url = env["db_url"] db_url = env["db_url"]
db_port = env["db_port"] db_port = env["db_port"]
......
...@@ -24,7 +24,7 @@ import allure ...@@ -24,7 +24,7 @@ import allure
@allure.feature("测试模块:hosttype.delete") @allure.feature("测试模块:hosttype.delete")
class TestHostTypeDelete(object): class TestHostTypeDelete(object):
log = UtilsLog() log = UtilsLog()
env = CaseBase().app_environment env = CaseBase().environment_test
host = env["host"] host = env["host"]
db_url = env["db_url"] db_url = env["db_url"]
db_port = env["db_port"] db_port = env["db_port"]
......
...@@ -24,7 +24,7 @@ import allure ...@@ -24,7 +24,7 @@ import allure
@allure.feature("测试模块:hosttype.get") @allure.feature("测试模块:hosttype.get")
class TestHostTypeGet(object): class TestHostTypeGet(object):
log = UtilsLog() log = UtilsLog()
env = CaseBase().app_environment env = CaseBase().environment_test
host = env["host"] host = env["host"]
db_url = env["db_url"] db_url = env["db_url"]
db_port = env["db_port"] db_port = env["db_port"]
...@@ -156,7 +156,7 @@ class TestHostTypeGet(object): ...@@ -156,7 +156,7 @@ class TestHostTypeGet(object):
@allure.story("查询设备类型:description成功查询") @allure.story("查询设备类型:description成功查询")
def test_case_08(self): def test_case_08(self):
title = self.base_title + "08" title = self.base_title + "08"
self.app.case_create_hostType(title=title, parentId=0, description=None) self.app.case_create_hostType(title=title, parentId=0, description="description")
response = self.app.hostType_get(token=self.token, description="description") response = self.app.hostType_get(token=self.token, description="description")
self.app.check_code(response=response, code=0) self.app.check_code(response=response, code=0)
......
...@@ -26,7 +26,7 @@ import allure ...@@ -26,7 +26,7 @@ import allure
@allure.feature("测试模块:hosttype.list") @allure.feature("测试模块:hosttype.list")
class TestHostTypeList(object): class TestHostTypeList(object):
log = UtilsLog() log = UtilsLog()
env = CaseBase().app_environment env = CaseBase().environment_test
host = env["host"] host = env["host"]
db_url = env["db_url"] db_url = env["db_url"]
db_port = env["db_port"] db_port = env["db_port"]
......
...@@ -26,7 +26,7 @@ import allure ...@@ -26,7 +26,7 @@ import allure
@allure.feature("测试模块:hosttype.tree") @allure.feature("测试模块:hosttype.tree")
class TestHostTypeTree(object): class TestHostTypeTree(object):
log = UtilsLog() log = UtilsLog()
env = CaseBase().app_environment env = CaseBase().environment_test
host = env["host"] host = env["host"]
db_url = env["db_url"] db_url = env["db_url"]
db_port = env["db_port"] db_port = env["db_port"]
......
...@@ -24,7 +24,7 @@ import allure ...@@ -24,7 +24,7 @@ import allure
@allure.feature("测试模块:hosttype.update") @allure.feature("测试模块:hosttype.update")
class TestHostTypeUpdate(object): class TestHostTypeUpdate(object):
log = UtilsLog() log = UtilsLog()
env = CaseBase().app_environment env = CaseBase().environment_test
host = env["host"] host = env["host"]
db_url = env["db_url"] db_url = env["db_url"]
db_port = env["db_port"] db_port = env["db_port"]
......
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