mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
We no longer warn.
This commit is contained in:
parent
64566a37ef
commit
5d35f856ac
@ -153,10 +153,6 @@ class UtilsTestCase(TestCase):
|
|||||||
# Make sure we raise an error if we don't pass in the requisite number of arguments
|
# Make sure we raise an error if we don't pass in the requisite number of arguments
|
||||||
self.assertRaises(SaltInvocationError, utils.format_call, dummy_func, {'1': 2})
|
self.assertRaises(SaltInvocationError, utils.format_call, dummy_func, {'1': 2})
|
||||||
|
|
||||||
# Make sure we warn on invalid kwargs
|
|
||||||
ret = utils.format_call(dummy_func, {'first': 2, 'second': 2, 'third': 3})
|
|
||||||
self.assertGreaterEqual(len(ret['warnings']), 1)
|
|
||||||
|
|
||||||
ret = utils.format_call(dummy_func, {'first': 2, 'second': 2, 'third': 3},
|
ret = utils.format_call(dummy_func, {'first': 2, 'second': 2, 'third': 3},
|
||||||
expected_extra_kws=('first', 'second', 'third'))
|
expected_extra_kws=('first', 'second', 'third'))
|
||||||
self.assertDictEqual(ret, {'args': [], 'kwargs': {}})
|
self.assertDictEqual(ret, {'args': [], 'kwargs': {}})
|
||||||
|
Loading…
Reference in New Issue
Block a user