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 67effab commit bbdca62Copy full SHA for bbdca62
tuttle_tests/test_model.py
@@ -81,16 +81,18 @@ def test_user():
81
82
83
class TestContact:
84
- def test_valid_contact_instantiation(self):
85
- contact = Contact(
86
- first_name="Sam",
87
- last_name="Lowry",
88
- email="[email protected]",
89
- company="Ministry of Information",
+ def test_valid_instantiation(self):
+ contact = Contact.validate(
+ dict(
+ first_name="Sam",
+ last_name="Lowry",
+ email="[email protected]",
90
+ company="Ministry of Information",
91
+ )
92
)
93
assert store_and_retrieve(contact)
94
- def test_invalid_email_instantiation(self):
95
+ def test_invalid_email(self):
96
with pytest.raises(ValidationError):
97
Contact.validate(
98
dict(
0 commit comments