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 1
1
import pytest
2
- from pydantic import ValidationError
3
2
4
3
from mailtrap .models .inboxes import CreateInboxParams
5
4
from mailtrap .models .inboxes import UpdateInboxParams
@@ -13,7 +12,7 @@ def test_api_data_should_return_dict_with_all_props(self) -> None:
13
12
14
13
class TestUpdateInboxParams :
15
14
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 :
17
16
_ = UpdateInboxParams ()
18
17
19
18
assert "At least one field must be provided for update actio" in str (exc )
Original file line number Diff line number Diff line change 1
1
import pytest
2
- from pydantic import ValidationError
3
2
4
3
from mailtrap .models .templates import CreateEmailTemplateParams
5
4
from mailtrap .models .templates import UpdateEmailTemplateParams
@@ -33,7 +32,7 @@ def test_api_data_should_return_dict_with_all_props(self) -> None:
33
32
34
33
class TestUpdateEmailTemplateParams :
35
34
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 :
37
36
_ = UpdateEmailTemplateParams ()
38
37
39
38
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