File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 11import pytest
2- from pydantic import ValidationError
32
43from mailtrap .models .inboxes import CreateInboxParams
54from mailtrap .models .inboxes import UpdateInboxParams
@@ -13,7 +12,7 @@ def test_api_data_should_return_dict_with_all_props(self) -> None:
1312
1413class TestUpdateInboxParams :
1514 def test_raise_error_when_all_fields_are_missing (self ) -> None :
16- with pytest .raises (ValidationError ) as exc :
15+ with pytest .raises (ValueError ) as exc :
1716 _ = UpdateInboxParams ()
1817
1918 assert "At least one field must be provided for update actio" in str (exc )
Original file line number Diff line number Diff line change 11import pytest
2- from pydantic import ValidationError
32
43from mailtrap .models .templates import CreateEmailTemplateParams
54from mailtrap .models .templates import UpdateEmailTemplateParams
@@ -33,7 +32,7 @@ def test_api_data_should_return_dict_with_all_props(self) -> None:
3332
3433class TestUpdateEmailTemplateParams :
3534 def test_raise_error_when_all_fields_are_missing (self ) -> None :
36- with pytest .raises (ValidationError ) as exc :
35+ with pytest .raises (ValueError ) as exc :
3736 _ = UpdateEmailTemplateParams ()
3837
3938 assert "At least one field must be provided for update actio" in str (exc )
You can’t perform that action at this time.
0 commit comments