Fixing lint errors

This commit is contained in:
Gareth J. Greenaway 2019-02-23 10:01:01 -08:00
parent 38dcab9e9b
commit 61735787dc
No known key found for this signature in database
GPG key ID: 10B62F8A7CAD7A41
2 changed files with 2 additions and 2 deletions

View file

@ -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')

View file

@ -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"}])):