From dd351f10777dbc078ccae72e9eb438a08156f638 Mon Sep 17 00:00:00 2001 From: Christian Manivong Date: Sun, 1 Nov 2026 07:58:10 +0100 Subject: [PATCH] test: check the proxy fix's own steps, not every step the mixin runs napalm-device-types adds an https step to configure_package_proxy (NetOrk/netork#1811). It runs on the transports this driver already has, so the test checks the four steps it supplies and lets later ones be. --- tests/test_fix_templates.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_fix_templates.py b/tests/test_fix_templates.py index 68e5a37..8f1dd3d 100644 --- a/tests/test_fix_templates.py +++ b/tests/test_fix_templates.py @@ -169,7 +169,10 @@ class TestPackageProxyAndEngineAccess: result = driver.configure_package_proxy("http://cache.lan:3142") - assert [s["step"] for s in result["steps"]] == ["configure", "conflicts", "verify", "fetch"] + # The steps napalm-device-types runs on this driver's transports; later ones + # (https, NetOrk/netork#1811) are the mixin's own. + steps = [s["step"] for s in result["steps"]] + assert steps[:4] == ["configure", "conflicts", "verify", "fetch"] assert any("dists/trixie/InRelease" in c for c in ran) def test_another_file_s_proxy_is_commented_out_as_root(self, driver): -- 2.54.0