mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix: create dataset return type inconsistent (#11272)
### What problem does this PR solve? Fix: create dataset return type inconsistent #11167 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -104,7 +104,7 @@ def test_invalid_name_dataset(get_auth):
|
||||
assert res['code'] == 100
|
||||
|
||||
res = create_dataset(get_auth, "")
|
||||
assert res['code'] == 100
|
||||
assert res['code'] == 102
|
||||
|
||||
long_string = ""
|
||||
|
||||
@ -112,7 +112,7 @@ def test_invalid_name_dataset(get_auth):
|
||||
long_string += random.choice(string.ascii_letters + string.digits)
|
||||
|
||||
res = create_dataset(get_auth, long_string)
|
||||
assert res['code'] == 100
|
||||
assert res['code'] == 102
|
||||
print(res)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user