Skip to content

Commit 8de641f

Browse files
committed
🔒 Fix validation error type in username length test
1 parent b12e139 commit 8de641f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/models-library/tests/test_api_schemas_webserver_users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_my_profile_patch_username_min_len():
3232
MyProfileRestPatch.model_validate({"userName": "abc"})
3333

3434
assert err_info.value.error_count() == 1
35-
assert err_info.value.errors()[0]["type"] == "too_short"
35+
assert err_info.value.errors()[0]["type"] == "string_too_short"
3636

3737
MyProfileRestPatch.model_validate({"userName": "abcd"}) # OK
3838

0 commit comments

Comments
 (0)