From e918ae1d2c68fa0eb984dddbe75732d5500ff4c1 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Mon, 7 Jun 2021 11:30:49 +0300 Subject: [PATCH] Renamed a unit test to be more specific: test_decrypt_config__no_password -> test_encrypt_decrypt_config__decrypt_no_password --- .../monkey_island/cc/services/utils/test_config_encryption.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/tests/unit_tests/monkey_island/cc/services/utils/test_config_encryption.py b/monkey/tests/unit_tests/monkey_island/cc/services/utils/test_config_encryption.py index 4bc21c041..14d8d6b16 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/services/utils/test_config_encryption.py +++ b/monkey/tests/unit_tests/monkey_island/cc/services/utils/test_config_encryption.py @@ -43,7 +43,7 @@ def test_encrypt_decrypt_config__malformed(): decrypt_config(MALFORMED_CYPHER_TEXT_CORRUPTED, PASSWORD) -def test_decrypt_config__no_password(plaintext_config): +def test_encrypt_decrypt_config__decrypt_no_password(plaintext_config): encrypted_config = encrypt_config(plaintext_config, PASSWORD) with pytest.raises(NoCredentialsError): decrypt_config(encrypted_config, "")