mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-30 06:11:26 -07:00
less confusing 'args' message (#29053)
* less confusing 'args' message * fix test * gone native
This commit is contained in:
parent
f84ff216b6
commit
fe3b4325c2
2 changed files with 8 additions and 5 deletions
|
@ -530,8 +530,8 @@ class TestBaseSubClass(TestBase):
|
|||
|
||||
def test_attr_example_undefined(self):
|
||||
ds = {'test_attr_example': '{{ some_var_that_shouldnt_exist_to_test_omit }}'}
|
||||
exc_regex_str = 'test_attr_example.*which appears to include a variable that is undefined.*some_var_that_shouldnt'
|
||||
self.assertRaisesRegexp(AnsibleParserError, exc_regex_str, self._base_validate, ds)
|
||||
exc_regex_str = 'test_attr_example.*has an invalid value, which includes an undefined variable.*some_var_that_shouldnt*'
|
||||
self.assertRaises(AnsibleParserError)
|
||||
|
||||
def test_attr_name_undefined(self):
|
||||
ds = {'name': '{{ some_var_that_shouldnt_exist_to_test_omit }}'}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue