mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Adding unittest for space preservation within quotes when splitting args
This commit is contained in:
@@ -707,6 +707,12 @@ class TestUtils(unittest.TestCase):
|
||||
['a', '{% if x %}', 'y', '{%else %}', '{{meow}}', '{% endif %}', 'cookiechip\ndone']
|
||||
)
|
||||
|
||||
# test space preservation within quotes
|
||||
_test_combo(
|
||||
'content="1 2 3 4 " foo=bar',
|
||||
['content="1 2 3 4 "', 'foo=bar']
|
||||
)
|
||||
|
||||
# invalid jinja2 nesting detection
|
||||
# invalid quote nesting detection
|
||||
|
||||
|
||||
Reference in New Issue
Block a user