fix one more test

This commit is contained in:
Georges-Antoine Assi
2026-01-19 12:48:54 -05:00
parent dd5935f50c
commit 1602688d08

View File

@@ -119,7 +119,9 @@ class TestFSHandler:
absolute_paths = ["/etc/passwd", "/tmp/test.txt", "/home/user/file.txt"]
for path in absolute_paths:
with pytest.raises(ValueError, match="Path must be relative, not absolute"):
with pytest.raises(
ValueError, match="Path .* must be relative, not absolute"
):
handler.validate_path(path)
def test_get_file_name_with_no_extension(self, handler: FSHandler):