Change test_string_list_encryptor.py to re-use fixture "uses_encryptor" rather than implementing the same fixture locally

This commit is contained in:
VakarisZ 2021-09-22 15:38:03 +03:00
parent 854ce4e1e1
commit b2db5e77c4
1 changed files with 7 additions and 0 deletions

View File

@ -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)