feat: drop get_device_warnings; the pending updates are the fact (0.3.0)
CI / test (3.10) (push) Successful in 30s
CI / test (3.11) (push) Successful in 28s
CI / test (3.12) (push) Successful in 30s
CI / test (3.10) (pull_request) Successful in 29s
CI / test (3.11) (pull_request) Successful in 28s
CI / test (3.12) (pull_request) Successful in 30s

updates_available came from the cached firmware status with ten package
names; netOrk builds it from get_available_updates with the full list
(netOrk #1111).
This commit is contained in:
Christian Manivong committed 2026-10-17 09:38:34 +02:00
1 parent 39cc177bf2
commit 5ab33d67f3
3 files changed
+9 -29

No files matched your search

+8
View File
@@ -138,3 +138,11 @@ class TestRebootHost:
with patch.object(driver, "_post", side_effect=ConnectionError("403 Forbidden")):
with pytest.raises(RuntimeError, match="403"):
driver.reboot_host()
def test_no_warnings_of_its_own():
"""The pending updates are get_available_updates; the caller names
updates_available from them (netOrk #1111)."""
from napalm_opnsense.opnsense import OPNsenseDriver
assert "get_device_warnings" not in vars(OPNsenseDriver)