Skip to content

Commit f3f0228

Browse files
For-Sunnyclaude
andcommitted
Fix CI: add pytest-cov dependency and format test file
- Added pytest-cov to dev dependencies (CI uses --cov flag) - Removed ruff upper bound (<1.0.0) — ruff 0.15.1 is current - Reformatted test_error_sanitization.py to pass black check Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent a3d70aa commit f3f0228

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ dependencies = [
3030
dev = [
3131
"pytest>=7.4.0,<9.0.0",
3232
"pytest-asyncio>=0.21.0,<1.0.0",
33+
"pytest-cov>=4.0.0",
3334
"black>=23.0.0,<25.0.0",
34-
"ruff>=0.1.0,<1.0.0",
35+
"ruff>=0.1.0",
3536
]
3637

3738
[project.urls]

tests/test_error_sanitization.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ def test_handles_empty_error(self):
7979

8080
def test_sanitizes_multiple_paths(self):
8181
"""Test that multiple paths in one error are all sanitized."""
82-
error = Exception(
83-
r"Error copying C:\Users\admin\source.txt to C:\Users\admin\dest.txt"
84-
)
82+
error = Exception(r"Error copying C:\Users\admin\source.txt to C:\Users\admin\dest.txt")
8583
result = sanitize_error_message(error)
8684
assert r"C:\Users\admin" not in result
8785
# The filenames should still be referenced

0 commit comments

Comments
 (0)