Created
July 4, 2023 14:49
-
-
Save jacoor/47703a0e63c3eeb55c141fee05285fd9 to your computer and use it in GitHub Desktop.
model form test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_model_form_contact_fields(): | |
form = ModelContactForm() | |
assert len(form.fields) == 4 | |
assert "email" in form.fields | |
assert "first_name" in form.fields | |
assert "last_name" in form.fields | |
assert "message" in form.fields |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment