From b2db5e77c4bb65faee70037ba3b8490b79670c3a Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Wed, 22 Sep 2021 15:38:03 +0300 Subject: [PATCH] Change test_string_list_encryptor.py to re-use fixture "uses_encryptor" rather than implementing the same fixture locally --- monkey/tests/unit_tests/monkey_island/cc/conftest.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/monkey/tests/unit_tests/monkey_island/cc/conftest.py b/monkey/tests/unit_tests/monkey_island/cc/conftest.py index 438ee3fef..f7d28b9de 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/conftest.py +++ b/monkey/tests/unit_tests/monkey_island/cc/conftest.py @@ -10,6 +10,8 @@ from tests.unit_tests.monkey_island.cc.server_utils.encryption.test_password_bas STANDARD_PLAINTEXT_MONKEY_CONFIG_FILENAME, ) +from monkey_island.cc.server_utils.encryptor import initialize_encryptor + @pytest.fixture def monkey_config(data_for_tests_dir): @@ -23,3 +25,8 @@ def monkey_config(data_for_tests_dir): @pytest.fixture def monkey_config_json(monkey_config): return json.dumps(monkey_config) + + +@pytest.fixture +def uses_encryptor(data_for_tests_dir): + initialize_encryptor(data_for_tests_dir)