We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57f8686 commit cf58cdaCopy full SHA for cf58cda
mailtrap/models/contacts.py
@@ -157,4 +157,4 @@ class ContactEvent:
157
contact_id: str
158
contact_email: str
159
name: str
160
- params: dict[str, Any]
+ params: Optional[dict[str, Any]] = None
tests/unit/models/test_contacts.py
@@ -227,7 +227,7 @@ def test_contact_event_params_api_data_should_return_correct_dict(
227
}
228
229
def test_contact_event_params_with_empty_params_should_work(self) -> None:
230
- """Test that empty filters list works correctly."""
+ """Test that ContactEventParams works correctly when params are omitted."""
231
params = ContactEventParams(name="UserLogin")
232
api_data = params.api_data
233
assert api_data == {"name": "UserLogin"}
0 commit comments