Skip to content

Commit

Permalink
ignore url in test_allocation_fails_on_invalid_item_hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonyjin committed Nov 22, 2024
1 parent cd88144 commit d96e9ca
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/supervisor/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@ async def test_allocation_fails_on_invalid_item_hash(aiohttp_client):

assert response.status == 400

assert await response.json() == [
response = await response.json()
for error in response:
error.pop("url", None)

assert response == [
{
"loc": ["persistent_vms", 0],
"msg": "Value error, Could not determine hash type: 'not-an-ItemHash'",
"type": "value_error",
"ctx": {"error": "Could not determine hash type: 'not-an-ItemHash'"},
"input": "not-an-ItemHash",
"url": "https://errors.pydantic.dev/2.9/v/value_error",
},
]

Expand Down

0 comments on commit d96e9ca

Please sign in to comment.