We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d239d9f commit 4ecb761Copy full SHA for 4ecb761
tests/cli/commands/scan/prompt/test_utils.py
@@ -7,22 +7,6 @@
7
)
8
9
10
-def test_normalize_path_basic() -> None:
11
- """Test basic path normalization."""
12
- path = '/path/to/file.txt'
13
- result = normalize_path(path)
14
-
15
- assert result == '/path/to/file.txt'
16
17
18
-def test_normalize_path_with_dots() -> None:
19
- """Test normalizing path with . and .. segments."""
20
- path = '/path/./to/../file.txt'
21
22
23
- assert result == '/path/file.txt'
24
25
26
def test_normalize_path_rejects_escape() -> None:
27
"""Test that paths attempting to escape are rejected."""
28
path = '../../../etc/passwd'
0 commit comments