🐛 | Fix SonarQube violations - use items() and remove assert True
All checks were successful
SonarQube Code Quality Scan / SonarQube Scan (push) Successful in 1m42s
All checks were successful
SonarQube Code Quality Scan / SonarQube Scan (push) Successful in 1m42s
This commit is contained in:
@@ -301,13 +301,11 @@ class TestCleanupPath:
|
||||
"""_cleanup_path does nothing for non-existent paths."""
|
||||
fn = self._import()
|
||||
fn("/nonexistent/path/file.txt") # should not raise
|
||||
assert True
|
||||
|
||||
def test_noop_for_none(self):
|
||||
"""_cleanup_path does nothing when path is None."""
|
||||
fn = self._import()
|
||||
fn(None)
|
||||
assert True
|
||||
|
||||
def test_oserror_handled_gracefully(self, tmp_path, monkeypatch):
|
||||
"""_cleanup_path handles OSError gracefully."""
|
||||
@@ -320,7 +318,6 @@ class TestCleanupPath:
|
||||
|
||||
monkeypatch.setattr(os, "unlink", _fail_unlink)
|
||||
fn(str(path)) # should not raise
|
||||
assert True
|
||||
|
||||
|
||||
# ── _tmp_dir ───────────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user