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