Tests for the django-e2ee-framework views
Classes:
Unit tests for the EncryptionKey class in JavaScript. |
|
Unit tests for the EncryptionKey class in JavaScript. |
Functions:
|
Test encrypting a message through the service worker. |
|
Test the creation of the master key. |
|
Test the creation of another masterkey secret. |
Test authentication of a new session via other session and password. |
|
Test authentication of a new session via other session. |
|
|
Test authentication of a new session via password. |
- class django_e2ee.tests.test_views.TestEncryptionKey
Bases:
object
Unit tests for the EncryptionKey class in JavaScript.
Methods:
get_encryption_key_js
(driver)get_existing_encryption_key_js
(driver, uuid)test_encrypt_decrypt
(e2e_browser)Test encryption and decryption of a message.
test_key_generation
(e2e_browser)Test generating an encryption key.
test_key_upload
(e2e_browser)Test the encryption key upload for multiple users.
- get_encryption_key_js(driver: Remote)
- get_existing_encryption_key_js(driver: Remote, uuid)
- test_encrypt_decrypt(e2e_browser: Remote)
Test encryption and decryption of a message.
- test_key_generation(e2e_browser: Remote)
Test generating an encryption key.
- test_key_upload(e2e_browser: Remote)
- test_key_upload_for_multiple_users(test_user_factory: Callable[[], User], e2e_browser_factory: Callable[[User], Remote])
Test the encryption key upload for multiple users.
- test_key_upload_for_other_user(test_user_factory: Callable[[], User], e2e_browser_factory: Callable[[User], Remote])
- class django_e2ee.tests.test_views.TestEncryptionKeyStore
Bases:
object
Unit tests for the EncryptionKey class in JavaScript.
Methods:
get_encryption_key_store_js
(driver)test_decryption
(e2e_browser, test_user)Test decrypting messages
test_key_creation
(e2e_browser)Test the createKey method of an EncryptionKeyStore
test_key_retrieval
(e2e_browser)Test the getKey method of an EncryptionKeyStore
- get_encryption_key_store_js(driver: Remote)
- test_decryption(e2e_browser: Remote, test_user: User)
Test decrypting messages
- test_key_creation(e2e_browser: Remote)
Test the createKey method of an EncryptionKeyStore
- test_key_retrieval(e2e_browser: Remote)
Test the getKey method of an EncryptionKeyStore
- django_e2ee.tests.test_views.test_encryption_decryption_post(e2e_browser: Remote, test_user: User, make_request: Callable[[Remote, str, str, Optional[Dict]], Dict])
Test encrypting a message through the service worker.
- django_e2ee.tests.test_views.test_master_key_creation(e2e_browser: Remote, test_user: User)
Test the creation of the master key.
- django_e2ee.tests.test_views.test_master_key_secret_creation(e2e_browser: Remote, make_request: Callable[[Remote, str, str, Optional[Dict]], Dict], authenticated_browser_factory: Callable[[User], Remote], test_user: User, dummy_password: str)
Test the creation of another masterkey secret.
- django_e2ee.tests.test_views.test_remote_password_authentication(e2e_browser: Remote, test_user: User, authenticated_browser_factory: Callable[[User], Remote], make_request: Callable[[Remote, str, str, Optional[Dict]], Dict], dummy_password: str)
Test authentication of a new session via other session and password.