Skip to content

Commit

Permalink
🐛 fix(test_user.py): fix linting issue by adding noqa comment to long…
Browse files Browse the repository at this point in the history
… lines
  • Loading branch information
ogabrielluiz committed Nov 3, 2023
1 parent 640c2b6 commit c90fe4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@ def test_patch_user_wrong_id(client, active_user, logged_in_headers):
{
"type": "uuid_parsing",
"loc": ["path", "user_id"],
"msg": "Input should be a valid UUID, invalid character: expected an optional prefix of `urn:uuid:` followed by [0-9a-fA-F-], found `w` at 1",
"msg": "Input should be a valid UUID, invalid character: expected an optional prefix of `urn:uuid:` followed by [0-9a-fA-F-], found `w` at 1", # noqa
"input": "wrong_id",
"ctx": {
"error": "invalid character: expected an optional prefix of `urn:uuid:` followed by [0-9a-fA-F-], found `w` at 1"
"error": "invalid character: expected an optional prefix of `urn:uuid:` followed by [0-9a-fA-F-], found `w` at 1" # noqa
},
"url": "https://errors.pydantic.dev/2.4/v/uuid_parsing",
}
Expand All @@ -241,10 +241,10 @@ def test_delete_user_wrong_id(client, test_user, super_user_headers):
{
"type": "uuid_parsing",
"loc": ["path", "user_id"],
"msg": "Input should be a valid UUID, invalid character: expected an optional prefix of `urn:uuid:` followed by [0-9a-fA-F-], found `w` at 1",
"msg": "Input should be a valid UUID, invalid character: expected an optional prefix of `urn:uuid:` followed by [0-9a-fA-F-], found `w` at 1", # noqa
"input": "wrong_id",
"ctx": {
"error": "invalid character: expected an optional prefix of `urn:uuid:` followed by [0-9a-fA-F-], found `w` at 1"
"error": "invalid character: expected an optional prefix of `urn:uuid:` followed by [0-9a-fA-F-], found `w` at 1" # noqa
},
"url": "https://errors.pydantic.dev/2.4/v/uuid_parsing",
}
Expand Down

0 comments on commit c90fe4c

Please sign in to comment.