feat: a missing license can say what the device withholds without it (4.15.0) #44

Merged
christianmanivong merged 2 commits from feat/license-withholds into main 2026-10-17 09:41:29 +00:00
Showing only changes of commit 634c142477 - Show all commits
+2 -1
View File
@@ -30,7 +30,8 @@ def test_a_missing_license_may_say_what_the_device_withholds_without_it():
# A Supermicro X10 with only SFT-OOB-LIC answers Redfish but keeps its drives and
# firmware inventory until DCMS is activated: partly licensed, not unlicensed.
hints = get_type_hints(LicenseDict)
assert hints["withholds"] == list[str] or str(hints["withholds"]).endswith("List[str]")
# Python 3.10 keeps NotRequired[...] around the type; later versions strip it.
assert "List[str]" in str(hints["withholds"])
assert "withholds" not in LicenseDict.__required_keys__