You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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')}"