Skip to content

Instantly share code, notes, and snippets.

@jacoor
Created July 4, 2023 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacoor/47703a0e63c3eeb55c141fee05285fd9 to your computer and use it in GitHub Desktop.
Save jacoor/47703a0e63c3eeb55c141fee05285fd9 to your computer and use it in GitHub Desktop.
model form test
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