Skip to content

Commit 5c67908

Browse files
ilia-cyclaude
andcommitted
CM-59469 fix Windows path separator in secret scan test
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 18cfc8f commit 5c67908

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/cli/commands/scan/test_scan_result.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import os
2+
13
from cycode.cli.apps.scan.scan_result import _get_file_name_from_detection
24
from cycode.cli.consts import IAC_SCAN_TYPE, SAST_SCAN_TYPE, SCA_SCAN_TYPE, SECRET_SCAN_TYPE
35

@@ -42,4 +44,4 @@ def test_get_file_name_from_detection_secret_uses_file_path_and_file_name() -> N
4244
},
4345
}
4446
result = _get_file_name_from_detection(SECRET_SCAN_TYPE, raw_detection)
45-
assert result == '/repo/src/.env'
47+
assert result == os.path.join('/repo/src', '.env')

0 commit comments

Comments
 (0)