Squash Odysseus development history

This commit is contained in:
pewdiepie-archdaemon
2026-09-11 06:04:19 +00:00
parent e5c99a5eee
commit 6ee6502010
2050 changed files with 538359 additions and 57745 deletions
+16
View File
@@ -0,0 +1,16 @@
"""Regression: _lookup_bandwidth must tolerate a non-string gpu_name.
It guarded only falsy values; a truthy non-string (e.g. a number from a
malformed hardware probe) reached `gpu_name.lower()` and raised AttributeError.
"""
from services.hwfit.fit import _lookup_bandwidth
def test_non_string_returns_none():
assert _lookup_bandwidth(123) is None
assert _lookup_bandwidth(["x"]) is None
assert _lookup_bandwidth(None) is None
def test_known_gpu_resolves():
assert _lookup_bandwidth("NVIDIA GeForce RTX 4090") is not None