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)
This commit is contained in:
cecilia-uu 2024-06-04 09:50:47 +08:00 committed by GitHub
parent c74d4d683e
commit 4fba0427eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

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

View File

@ -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'