mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixing lint errors
This commit is contained in:
parent
38dcab9e9b
commit
61735787dc
2 changed files with 2 additions and 2 deletions
|
@ -269,7 +269,7 @@ class PartedTestCase(TestCase, LoaderModuleMockMixin):
|
|||
self.assertEqual(output, expected)
|
||||
|
||||
def test_list__valid_unit_chs_valid_cmd_output(self):
|
||||
with patch('salt.modules.parted._validate_device', MagicMock()):
|
||||
with patch('salt.modules.parted_partition._validate_device', MagicMock()):
|
||||
self.cmdrun_stdout.return_value = self.parted_print_output('valid chs')
|
||||
output = parted.list_('/dev/sda', unit='chs')
|
||||
self.cmdrun_stdout.assert_called_once_with('parted -m -s /dev/sda unit chs print')
|
||||
|
|
|
@ -439,7 +439,7 @@ class ZypperTestCase(TestCase, LoaderModuleMockMixin):
|
|||
with patch('salt.modules.zypperpkg.list_pkgs',
|
||||
MagicMock(side_effect=[{"vim": "1.1"}, {"vim": "1.1,1.2"}])):
|
||||
ret = zypper.upgrade()
|
||||
self.assertDictEqual(ret, {"vim": {"old": "1.1", "new": "1.2"}})
|
||||
self.assertDictEqual(ret, {"vim": {"old": "1.1", "new": "1.1,1.2"}})
|
||||
zypper_mock.assert_any_call('update', '--auto-agree-with-licenses')
|
||||
|
||||
with patch('salt.modules.zypperpkg.list_pkgs', MagicMock(side_effect=[{"vim": "1.1"}, {"vim": "1.2"}])):
|
||||
|
|
Loading…
Add table
Reference in a new issue