Skip to content

Commit

Permalink
added delete_dataset method (#1051)
Browse files Browse the repository at this point in the history
### 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)
  • Loading branch information
cecilia-uu authored Jun 4, 2024
1 parent c74d4d6 commit 4fba042
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdk/python/ragflow/ragflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ def __init__(self, user_key, base_url):
def create_dataset(self, name):
return name

def delete_dataset(self, name):
return name
3 changes: 3 additions & 0 deletions sdk/python/test/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ def test_version(self):

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'

0 comments on commit 4fba042

Please sign in to comment.