forked from p34709852/monkey
Change test_string_list_encryptor.py to re-use fixture "uses_encryptor" rather than implementing the same fixture locally
This commit is contained in:
parent
854ce4e1e1
commit
b2db5e77c4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue