From c1af3f8165b24c4e8d7e8c6974687eddfaaa6679 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 28 Jun 2021 13:31:28 -0400 Subject: [PATCH] agent: Fix failing ransomware test on Windows --- .../infection_monkey/ransomware/test_ransomware_payload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/tests/unit_tests/infection_monkey/ransomware/test_ransomware_payload.py b/monkey/tests/unit_tests/infection_monkey/ransomware/test_ransomware_payload.py index c2d13085e..70c43e8c6 100644 --- a/monkey/tests/unit_tests/infection_monkey/ransomware/test_ransomware_payload.py +++ b/monkey/tests/unit_tests/infection_monkey/ransomware/test_ransomware_payload.py @@ -1,5 +1,5 @@ import os -from pathlib import PurePath +from pathlib import PurePosixPath import pytest from tests.unit_tests.infection_monkey.ransomware.ransomware_target_files import ( @@ -143,7 +143,7 @@ def test_telemetry_failure(monkeypatch, ransomware_payload, telemetry_messenger_ monkeypatch.setattr( ransomware_payload_module, "select_production_safe_target_files", - lambda a, b: [PurePath("/file/not/exist")], + lambda a, b: [PurePosixPath("/file/not/exist")], ), ransomware_payload.run_payload()