Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions test/vanilla/AcceptanceTests/asynctests/test_xms_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,10 @@ async def test_do_something_error(self, client):

with pytest.raises(ResourceNotFoundError) as excinfo:
await client.pet.do_something("fetch")

@pytest.mark.asyncio
async def test_error_deserialization_with_param_name_models(self, client):
with pytest.raises(HttpResponseError) as excinfo:
await client.pet.has_models_param()
assert isinstance(excinfo.value.model, PetSadError)
assert excinfo.value.status_code == 500
6 changes: 6 additions & 0 deletions test/vanilla/AcceptanceTests/test_xms_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ def test_do_something_error(self, client):
with pytest.raises(ResourceNotFoundError) as excinfo:
client.pet.do_something("fetch")

def test_error_deserialization_with_param_name_models(self, client):
with pytest.raises(HttpResponseError) as excinfo:
client.pet.has_models_param()
assert isinstance(excinfo.value.model, PetSadError)
assert excinfo.value.status_code == 500

def test_models(self):
from xmserrorresponse.models import Animal

Expand Down