Skip to content

Commit c30a373

Browse files
rwgkcursoragent
andcommitted
pathfinder: drop redundant mocked happy-path driver-info tests
Remove ``test_query_driver_release_version_returns_parsed_dataclass`` and ``test_query_driver_cuda_version_returns_parsed_dataclass``: both shadow the dataclass parsers (``DriverReleaseVersion.from_text`` and ``DriverCudaVersion.from_encoded``), which already have direct coverage, and the wrapping/error paths are still exercised by the remaining mocked tests. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 10ac5b5 commit c30a373

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

cuda_pathfinder/tests/test_utils_driver_info.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,6 @@ def test_driver_release_version_from_text_parses_branch():
102102
)
103103

104104

105-
def test_query_driver_release_version_returns_parsed_dataclass(monkeypatch):
106-
monkeypatch.setattr(driver_info, "_query_driver_release_version_text", lambda: "595.58.03")
107-
108-
assert driver_info.query_driver_release_version() == driver_info.DriverReleaseVersion(
109-
text="595.58.03",
110-
components=(595, 58, 3),
111-
branch=595,
112-
)
113-
114-
115105
def test_query_driver_release_version_wraps_internal_failures(monkeypatch):
116106
root_cause = RuntimeError("low-level release query failed")
117107

@@ -186,16 +176,6 @@ def fake_windll(abs_path: str):
186176
assert loaded_paths == [r"C:\Windows\System32\nvcuda.dll"]
187177

188178

189-
def test_query_driver_cuda_version_returns_parsed_dataclass(monkeypatch):
190-
monkeypatch.setattr(driver_info, "_query_driver_cuda_version_int", lambda: 12080)
191-
192-
assert driver_info.query_driver_cuda_version() == driver_info.DriverCudaVersion(
193-
encoded=12080,
194-
major=12,
195-
minor=8,
196-
)
197-
198-
199179
def test_driver_cuda_version_from_encoded_returns_subclass_instance():
200180
version = driver_info.DriverCudaVersion.from_encoded(12080)
201181

0 commit comments

Comments
 (0)