您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

test_dataset.py 355B

12345678910
  1. from common import HOST_ADDRESS
  2. import requests
  3. def test_create_dataset(get_auth):
  4. authorization={"Authorization": get_auth}
  5. url = f"{HOST_ADDRESS}/v1/kb/create"
  6. json = {"name":"test_create_dataset"}
  7. res = requests.post(url=url,headers=authorization,json=json)
  8. res = res.json()
  9. assert res.get("code") == 0,f"{res.get('message')}"