mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-04-22 06:00:00 +08:00

### 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)
15 lines
427 B
Python
15 lines
427 B
Python
from test_sdkbase import TestSdk
|
|
import ragflow
|
|
from ragflow.ragflow import RAGFLow
|
|
import pytest
|
|
|
|
|
|
class TestCase(TestSdk):
|
|
def test_version(self):
|
|
print(ragflow.__version__)
|
|
|
|
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' |