Selaa lähdekoodia

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 vuosi sitten
vanhempi
commit
4fba0427eb
No account linked to committer's email address
2 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 2
    0
      sdk/python/ragflow/ragflow.py
  2. 3
    0
      sdk/python/test/test_basic.py

+ 2
- 0
sdk/python/ragflow/ragflow.py Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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…
Peruuta
Tallenna