瀏覽代碼

added delete_dataset method (#1051)

### What problem does this PR solve?

Added delete_dataset method and test for it.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
tags/v0.8.0
cecilia-uu 1 年之前
父節點
當前提交
4fba0427eb
沒有連結到貢獻者的電子郵件帳戶。
共有 2 個檔案被更改,包括 5 行新增0 行删除
  1. 2
    0
      sdk/python/ragflow/ragflow.py
  2. 3
    0
      sdk/python/test/test_basic.py

+ 2
- 0
sdk/python/ragflow/ragflow.py 查看文件

@@ -25,3 +25,5 @@ class RAGFLow(ABC):
def create_dataset(self, name):
return name

def delete_dataset(self, name):
return name

+ 3
- 0
sdk/python/test/test_basic.py 查看文件

@@ -10,3 +10,6 @@ class TestCase(TestSdk):

def test_create_dataset(self):
assert ragflow.ragflow.RAGFLow('123', 'url').create_dataset('abc') == 'abc'

def test_delete_dataset(self):
assert ragflow.ragflow.RAGFLow('123', 'url').delete_dataset('abc') == 'abc'

Loading…
取消
儲存