Fix pylint shadowed tcx in webdav test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWXcjiPpgRfxzrRfoky
This commit is contained in:
Krzysztof Rudnicki 2026-11-10 19:32:38 +01:00
parent 6777656418
commit 13f1e9ed93

View File

@ -176,11 +176,11 @@ class TestLocalVerifyAndParse:
) -> None:
"""A path that exists locally is parsed without any adb pull."""
locker = create_locker(mock_tk, tmp_path)
tcx = tmp_path / "run.tcx"
tcx.write_text(_TCX)
tcx_file = tmp_path / "run.tcx"
tcx_file.write_text(_TCX)
object.__setattr__(locker, "_run_adb", MagicMock())
data = locker._pull_and_parse_tcx(str(tcx))
data = locker._pull_and_parse_tcx(str(tcx_file))
assert data is not None
assert data["distance_m"] == 5800.0