From e3bbd9fc62426fbe14223520b5ed9d3a937c3470 Mon Sep 17 00:00:00 2001 From: Felix Fontein <felix@fontein.de> Date: Sat, 16 Apr 2022 15:37:23 +0200 Subject: [PATCH] Remove state=get tests. --- .../plugins/modules/system/test_xfconf.py | 100 ------------------ 1 file changed, 100 deletions(-) diff --git a/tests/unit/plugins/modules/system/test_xfconf.py b/tests/unit/plugins/modules/system/test_xfconf.py index d8c9a30a9ae..e8de07ae0be 100644 --- a/tests/unit/plugins/modules/system/test_xfconf.py +++ b/tests/unit/plugins/modules/system/test_xfconf.py @@ -40,106 +40,6 @@ def test_without_required_parameters(capfd, patch_xfconf): TEST_CASES = [ - [ - {'channel': 'xfwm4', 'property': '/general/inactive_opacity', 'state': 'get'}, - { - 'id': 'test_simple_property_get', - 'run_command.calls': [ - ( - # Calling of following command will be asserted - ['/testbin/xfconf-query', '--channel', 'xfwm4', '--property', '/general/inactive_opacity'], - # Was return code checked? - {'environ_update': {'LANGUAGE': 'C', 'LC_ALL': 'C'}, 'check_rc': False}, - # Mock of returned code, stdout and stderr - (0, '100\n', '',), - ), - ], - 'changed': False, - 'previous_value': None, - 'value_type': None, - 'value': '100', - } - ], - [ - {'channel': 'xfwm4', 'property': '/general/i_dont_exist', 'state': 'get'}, - { - 'id': 'test_simple_property_get_nonexistent', - 'run_command.calls': [ - ( - # Calling of following command will be asserted - ['/testbin/xfconf-query', '--channel', 'xfwm4', '--property', '/general/i_dont_exist'], - # Was return code checked? - {'environ_update': {'LANGUAGE': 'C', 'LC_ALL': 'C'}, 'check_rc': False}, - # Mock of returned code, stdout and stderr - (1, '', 'Property "/general/i_dont_exist" does not exist on channel "xfwm4".\n',), - ), - ], - 'changed': False, - 'previous_value': None, - 'value_type': None, - 'value': None, - } - ], - [ - {'channel': 'xfwm4', 'property': '/general/workspace_names', 'state': 'get'}, - { - 'id': 'test_property_get_array', - 'run_command.calls': [ - ( - # Calling of following command will be asserted - ['/testbin/xfconf-query', '--channel', 'xfwm4', '--property', '/general/workspace_names'], - # Was return code checked? - {'environ_update': {'LANGUAGE': 'C', 'LC_ALL': 'C'}, 'check_rc': False}, - # Mock of returned code, stdout and stderr - (0, 'Value is an array with 3 items:\n\nMain\nWork\nTmp\n', '',), - ), - ], - 'changed': False, - 'previous_value': None, - 'value_type': None, - 'value': ['Main', 'Work', 'Tmp'], - }, - ], - [ - {'channel': 'xfwm4', 'property': '/general/use_compositing', 'state': 'get'}, - { - 'id': 'test_property_get_bool', - 'run_command.calls': [ - ( - # Calling of following command will be asserted - ['/testbin/xfconf-query', '--channel', 'xfwm4', '--property', '/general/use_compositing'], - # Was return code checked? - {'environ_update': {'LANGUAGE': 'C', 'LC_ALL': 'C'}, 'check_rc': False}, - # Mock of returned code, stdout and stderr - (0, 'true', '',), - ), - ], - 'changed': False, - 'previous_value': None, - 'value_type': None, - 'value': 'true', - }, - ], - [ - {'channel': 'xfwm4', 'property': '/general/use_compositing', 'state': 'get'}, - { - 'id': 'test_property_get_bool_false', - 'run_command.calls': [ - ( - # Calling of following command will be asserted - ['/testbin/xfconf-query', '--channel', 'xfwm4', '--property', '/general/use_compositing'], - # Was return code checked? - {'environ_update': {'LANGUAGE': 'C', 'LC_ALL': 'C'}, 'check_rc': False}, - # Mock of returned code, stdout and stderr - (0, 'false', '',), - ), - ], - 'changed': False, - 'previous_value': None, - 'value_type': None, - 'value': 'false', - }, - ], [ { 'channel': 'xfwm4',