Skip to content

Commit

Permalink
fix uts (#2759)
Browse files Browse the repository at this point in the history
  • Loading branch information
nagworld9 committed Feb 21, 2023
1 parent ed0adbd commit f3cbff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/common/test_agent_supported_feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit f3cbff4

Please sign in to comment.