### What problem does this PR solve? - fixed documentss API request data schema - add documents sdk api tests ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
16 lines
424 B
Python
16 lines
424 B
Python
from ragflow import RAGFlow
|
|
|
|
from sdk.python.test.common import API_KEY, HOST_ADDRESS
|
|
from sdk.python.test.test_sdkbase import TestSdk
|
|
|
|
|
|
class TestDatasets(TestSdk):
|
|
|
|
def test_get_all_dataset_success(self):
|
|
"""
|
|
Test listing datasets with a successful outcome.
|
|
"""
|
|
ragflow = RAGFlow(API_KEY, HOST_ADDRESS)
|
|
res = ragflow.get_all_datasets()
|
|
assert res["retmsg"] == "success"
|