mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
Correct dictionary format returned in test
This commit is contained in:
parent
06d813285d
commit
a7f38d9473
1 changed files with 12 additions and 4 deletions
|
@ -2,6 +2,7 @@ import pytest
|
|||
|
||||
from salt.pillar.git_pillar import ext_pillar
|
||||
from salt.utils.immutabletypes import ImmutableDict, ImmutableList
|
||||
from salt.utils.odict import OrderedDict
|
||||
from tests.support.mock import patch
|
||||
|
||||
pytestmark = [
|
||||
|
@ -273,10 +274,17 @@ def _test_multiple_slash_in_branch_name(pillar_opts, grains):
|
|||
)
|
||||
assert data == {
|
||||
"key": "data",
|
||||
"foo": {
|
||||
"animals": {"breed": "seadog"},
|
||||
"feature/baz": {"test1": "dog", "test2": "kat", "test3": "horse"},
|
||||
},
|
||||
"foo": OrderedDict(
|
||||
[
|
||||
("animals", OrderedDict([("breed", "seadog")])),
|
||||
(
|
||||
"feature/baz",
|
||||
OrderedDict(
|
||||
[("test1", "dog"), ("test2", "kat"), ("test3", "gerbil")]
|
||||
),
|
||||
),
|
||||
]
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue