From 1a28898a008b7c349bbd7a7604788678bc954e31 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Fri, 5 Oct 2018 16:33:30 -0700 Subject: [PATCH] Fix parametrize warning in unit tests. --- test/units/module_utils/test_distribution_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/units/module_utils/test_distribution_version.py b/test/units/module_utils/test_distribution_version.py index 46261050d6..25f9169593 100644 --- a/test/units/module_utils/test_distribution_version.py +++ b/test/units/module_utils/test_distribution_version.py @@ -965,7 +965,7 @@ PRIVACY_POLICY_URL="http://www.intel.com/privacy" ] -@pytest.mark.parametrize("stdin, testcase", product([{}], TESTSETS), ids=lambda x: x['name'], indirect=['stdin']) +@pytest.mark.parametrize("stdin, testcase", product([{}], TESTSETS), ids=lambda x: x.get('name'), indirect=['stdin']) def test_distribution_version(am, mocker, testcase): """tests the distribution parsing code of the Facts class