diff --git a/tests/cyclient/mocked_responses/scan_client.py b/tests/cyclient/mocked_responses/scan_client.py index 4f740ce4..8518e2b9 100644 --- a/tests/cyclient/mocked_responses/scan_client.py +++ b/tests/cyclient/mocked_responses/scan_client.py @@ -128,7 +128,7 @@ def get_scan_detections_url(scan_client: ScanClient) -> str: def get_scan_detections_response(url: str, scan_id: UUID, zip_content_path: Path) -> responses.Response: with open(MOCKED_RESPONSES_PATH.joinpath('detections.json'), encoding='UTF-8') as f: content = f.read() - content = content.replace('%FILEPATH%', str(zip_content_path.absolute())) + content = content.replace('%FILEPATH%', str(zip_content_path.absolute().as_posix())) content = content.replace('%SCAN_ID%', str(scan_id)) json_response = json.loads(content)