Ejemplo n.º 1
0
 def test_database(self):
     '''
     加工厂数据共享新建分类
     :return:
     '''
     test = DmpLogin()
     postsearch = test.get_api("/api/db/database")
     print(postsearch)
     assert postsearch['data']["databaseName"] == 'slkfjlesfjl失而复得'
Ejemplo n.º 2
0
    def test_del_label_scope(self):
        test = DmpLogin()
        # try:
        data = {"dimname": "ddtest", "dimcode": "ddtest", "descriptions": "test", "pid": "-1", "orderid": "1"}
        postsave = test.post_api("/labelDimension/saveTagDimension", json=data)
        print(postsave)

        postsearch = test.get_api("/labelDimension/getDimensionListData",
                                   {"searchContent": "ddtest", "page": 1, "size": 20})
        print(postsearch)
        post = test.post_api("/labelDimension/deleteDimensionList", json=[postsearch['rows'][0]['ID']])
        util.info(post)
        # except Exception as e:
        #     print(e)
        #     util.info(e)
        assert postsave['code'] == '200'
        assert postsearch['total'] == 1
        assert post['code'] == '200'
Ejemplo n.º 3
0
 def test_getSettingData(self):
     test = DmpLogin()
     postsearch = test.get_api("/gzapi/getSettingData")
     print(postsearch)
Ejemplo n.º 4
0
 def test_getIdiEtlShow(self):
     test = DmpLogin()
     postsearch = test.get_api("/trans/getIdiEtlShow")
     print(postsearch)
Ejemplo n.º 5
0
 def test_lable_search_private_info_del(self):
     test = DmpLogin()
     postsearch = test.get_api("/tagManagement/addTagInfo",
                               {"searchContent": "ddtest", "page": 1, "size": 20})
     print(postsearch)
Ejemplo n.º 6
0
 def test_lable_search_private_info(self):
     test = DmpLogin()
     postsearch = test.get_api("/labelDimension/getDimensionListData",
                               {"searchContent": "ddtest", "page": 1, "size": 20})
     print(postsearch)
Ejemplo n.º 7
0
 def test_label_scope(self):
     test = DmpLogin()
     postsearch = test.get_api("/labelDimension/getDimensionListData",
                               { "page": 1, "size": 20})
     print(postsearch)
     assert postsearch['total']>=10