devices.tests.test_forms.test_forms_coverage_boost

Additional tests for forms to improve coverage.

Classes

TestCredentialDownloadFormPasswordValidation

Extended tests for CredentialDownloadForm password validation.

TestBrowserLoginFormExtended

Extended tests for BrowserLoginForm to cover uncovered lines.

TestOnboardingCreateFormExceptionHandling

Test exception handling in OnboardingCreateForm.

Module Contents

class devices.tests.test_forms.test_forms_coverage_boost.TestCredentialDownloadFormPasswordValidation[source]

Extended tests for CredentialDownloadForm password validation.

test_missing_password()[source]

Test that missing password triggers validation error.

Return type:

None

test_password_exactly_min_length()[source]

Test password with exactly minimum length.

Return type:

None

test_password_one_char_below_min()[source]

Test password one character below minimum length.

Return type:

None

class devices.tests.test_forms.test_forms_coverage_boost.TestBrowserLoginFormExtended[source]

Extended tests for BrowserLoginForm to cover uncovered lines.

test_empty_otp_field()[source]

Test form with completely empty OTP field.

Return type:

None

test_otp_wrong_number_of_parts()[source]

Test OTP with wrong number of dot-separated parts.

Return type:

None

test_otp_non_numeric_credential_id()[source]

Test OTP with non-numeric credential ID part.

Return type:

None

test_otp_credential_not_found(tls_client_credential_instance)[source]

Test OTP referencing non-existent credential ID.

Parameters:

tls_client_credential_instance (dict[str, Any])

Return type:

None

test_otp_invalid_hash(tls_client_credential_instance, device_instance)[source]

Test OTP with valid structure but invalid OTP hash.

Parameters:
  • tls_client_credential_instance (dict[str, Any])

  • device_instance (dict[str, Any])

Return type:

None

class devices.tests.test_forms.test_forms_coverage_boost.TestOnboardingCreateFormExceptionHandling[source]

Test exception handling in OnboardingCreateForm.

test_invalid_onboarding_protocol_value(device_instance)[source]

Test form with invalid onboarding protocol value.

Parameters:

device_instance (dict[str, Any])

Return type:

None