Update expected error code for invalid dataset names
This commit is contained in:
parent
8d09b403e0
commit
a09de182fe
1 changed files with 3 additions and 3 deletions
|
|
@ -101,10 +101,10 @@ def test_invalid_name_dataset(get_auth):
|
||||||
# create dataset
|
# create dataset
|
||||||
# with pytest.raises(Exception) as e:
|
# with pytest.raises(Exception) as e:
|
||||||
res = create_dataset(get_auth, 0)
|
res = create_dataset(get_auth, 0)
|
||||||
assert res['code'] == 100
|
assert res['code'] == 102
|
||||||
|
|
||||||
res = create_dataset(get_auth, "")
|
res = create_dataset(get_auth, "")
|
||||||
assert res['code'] == 100
|
assert res['code'] == 102
|
||||||
|
|
||||||
long_string = ""
|
long_string = ""
|
||||||
|
|
||||||
|
|
@ -112,7 +112,7 @@ def test_invalid_name_dataset(get_auth):
|
||||||
long_string += random.choice(string.ascii_letters + string.digits)
|
long_string += random.choice(string.ascii_letters + string.digits)
|
||||||
|
|
||||||
res = create_dataset(get_auth, long_string)
|
res = create_dataset(get_auth, long_string)
|
||||||
assert res['code'] == 100
|
assert res['code'] == 102
|
||||||
print(res)
|
print(res)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue