management.tests.test_models.test_backup¶
Test suite for the BackupOptions model.
Classes¶
Test suite for the BackupOptions model, ensuring that it enforces singleton behavior. |
|
Test suite for the BackupOptionsForm, ensuring validation logic. |
Module Contents¶
- class management.tests.test_models.test_backup.BackupOptionsModelTest(methodName='runTest')[source]¶
Bases:
django.test.TestCaseTest suite for the BackupOptions model, ensuring that it enforces singleton behavior.
- class management.tests.test_models.test_backup.BackupOptionsFormTest(methodName='runTest')[source]¶
Bases:
django.test.TestCaseTest suite for the BackupOptionsForm, ensuring validation logic.
- test_invalid_sftp_configuration()[source]¶
Test that enabling SFTP storage without providing required fields.
- Return type:
None
- test_sftp_password_auth_without_password()[source]¶
Test validation fails when password is not provided for PASSWORD auth method.
- Return type:
None
- test_sftp_ssh_key_auth_without_private_key()[source]¶
Test validation fails when private_key is not provided for SSH_KEY auth method.
- Return type:
None