devices.tests.test_forms.test_credential_download_formยถ

Test suite for validating the CredentialDownloadForm.

Functionsยถ

test_credential_download_form_clean(password, ...)

Test the form's validation logic for password matching and length.

test_credential_download_form_empty_fields()

Test that the form raises errors when fields are empty.

Module Contentsยถ

devices.tests.test_forms.test_credential_download_form.test_credential_download_form_clean(password, expected_errors)[source]ยถ

Test the formโ€™s validation logic for password matching and length.

Parameters:
  • password (str)

  • expected_errors (dict[str, list[str]])

Return type:

None

devices.tests.test_forms.test_credential_download_form.test_credential_download_form_empty_fields()[source]ยถ

Test that the form raises errors when fields are empty.

Return type:

None