mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix templar unittests for change in preserve_trailing_newline parameter's default value
This commit is contained in:
parent
1998eddf8d
commit
1b64702b9a
1 changed files with 2 additions and 1 deletions
|
@ -58,8 +58,9 @@ class TestTemplar(unittest.TestCase):
|
|||
|
||||
# test some basic templating
|
||||
self.assertEqual(templar.template("{{foo}}"), "bar")
|
||||
self.assertEqual(templar.template("{{foo}}\n"), "bar")
|
||||
self.assertEqual(templar.template("{{foo}}\n"), "bar\n")
|
||||
self.assertEqual(templar.template("{{foo}}\n", preserve_trailing_newlines=True), "bar\n")
|
||||
self.assertEqual(templar.template("{{foo}}\n", preserve_trailing_newlines=False), "bar")
|
||||
self.assertEqual(templar.template("foo", convert_bare=True), "bar")
|
||||
self.assertEqual(templar.template("{{bam}}"), "bar")
|
||||
self.assertEqual(templar.template("{{num}}"), 1)
|
||||
|
|
Loading…
Reference in a new issue