From 67b23c42bfac2baf967ef38dceb8989b9972d547 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 22 Sep 2021 07:44:54 -0400 Subject: [PATCH] Tests: Simplify test names in test_string_list_encryptor.py --- .../utils/field_encryptors/test_string_list_encryptor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/monkey/tests/unit_tests/monkey_island/cc/models/utils/field_encryptors/test_string_list_encryptor.py b/monkey/tests/unit_tests/monkey_island/cc/models/utils/field_encryptors/test_string_list_encryptor.py index 1417d0cbe..53b004401 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/models/utils/field_encryptors/test_string_list_encryptor.py +++ b/monkey/tests/unit_tests/monkey_island/cc/models/utils/field_encryptors/test_string_list_encryptor.py @@ -12,13 +12,14 @@ def uses_encryptor(data_for_tests_dir): initialize_encryptor(data_for_tests_dir) -def test_string_list_encryptor(uses_encryptor): +def test_encryption_and_decryption(uses_encryptor): encrypted_list = StringListEncryptor.encrypt(MOCK_STRING_LIST) assert not encrypted_list == MOCK_STRING_LIST decrypted_list = StringListEncryptor.decrypt(encrypted_list) assert decrypted_list == MOCK_STRING_LIST -def test_string_list_encryptor__empty_list(uses_encryptor): +def test_empty_list(uses_encryptor): + # Tests that no errors are raised encrypted_list = StringListEncryptor.encrypt(EMPTY_LIST) StringListEncryptor.decrypt(encrypted_list)