mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
jinja: test the "yaml" filter with ordered dicts
This commit is contained in:
parent
f7712d417f
commit
df76113c5c
1 changed files with 8 additions and 1 deletions
|
@ -471,7 +471,14 @@ class TestCustomExtensions(TestCase):
|
|||
"foo": True,
|
||||
"bar": 42,
|
||||
"baz": [1, 2, 3],
|
||||
"qux": 2.0
|
||||
"qux": 2.0,
|
||||
"spam": OrderedDict([
|
||||
('foo', OrderedDict([
|
||||
('bar', 'baz'),
|
||||
('qux', 42)
|
||||
])
|
||||
)
|
||||
])
|
||||
}
|
||||
env = Environment(extensions=[SerializerExtension])
|
||||
rendered = env.from_string('{{ dataset|yaml }}').render(dataset=dataset)
|
||||
|
|
Loading…
Add table
Reference in a new issue