File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
tests/pytests/unit/grains Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 1+ Fix an issue with the osrelease_info grain that was displaying empty strings
Original file line number Diff line number Diff line change @@ -1552,7 +1552,7 @@ def test_windows_platform_data():
15521552 "2016Server" ,
15531553 "2019Server" ,
15541554 "2022Server" ,
1555- "2025Server"
1555+ "2025Server" ,
15561556 ]
15571557 assert returned_grains ["osrelease" ] in valid_releases
15581558
@@ -3110,19 +3110,17 @@ def test_osdata_virtual_key_win():
31103110@pytest .mark .parametrize (
31113111 "osrelease, expected" ,
31123112 [
3113- ("2025Server" , (2025 , )),
3113+ ("2025Server" , (2025 ,)),
31143114 ("2012ServerR2" , (2012 , 2 )),
3115- ("11" , (11 , )),
3116- ("8.1" , (8 , 1 ))
3117- ]
3115+ ("11" , (11 ,)),
3116+ ("8.1" , (8 , 1 )),
3117+ ],
31183118)
31193119def test_windows_osdata_osrelease_info (osrelease , expected ):
31203120 platform_data = core ._windows_platform_data ()
31213121 platform_data ["osrelease" ] = osrelease
31223122 mock_platform_data = MagicMock (return_value = platform_data )
3123- with patch .object (
3124- core , "_windows_platform_data" , mock_platform_data
3125- ):
3123+ with patch .object (core , "_windows_platform_data" , mock_platform_data ):
31263124 os_data = core .os_data ()
31273125 assert os_data ["osrelease_info" ] == expected
31283126
You can’t perform that action at this time.
0 commit comments