From 444f5c5936660099aec229828168de074a7a88f6 Mon Sep 17 00:00:00 2001 From: "Nageswara Nandigam (HE/HIM)" Date: Mon, 13 Feb 2023 17:41:22 -0800 Subject: [PATCH] fix uts --- tests/common/test_agent_supported_feature.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/common/test_agent_supported_feature.py b/tests/common/test_agent_supported_feature.py index d8401e4661..c2d3b1981e 100644 --- a/tests/common/test_agent_supported_feature.py +++ b/tests/common/test_agent_supported_feature.py @@ -59,7 +59,7 @@ def test_it_should_return_ga_versioning_governance_feature_properly(self): self.assertIn(SupportedFeatureNames.GAVersioningGovernance, get_agent_supported_features_list_for_crp(), "GAVersioningGovernance should be fetched in crp_supported_features") - with patch("azurelinuxagent.common.conf.get_autoupdate_enabled", return_value=False): + with patch("azurelinuxagent.common.agent_supported_feature._GAVersioningGovernanceFeature.is_supported", False): self.assertNotIn(SupportedFeatureNames.GAVersioningGovernance, get_agent_supported_features_list_for_crp(), "GAVersioningGovernance should not be fetched in crp_supported_features as not supported")