Skip to content

Commit 6ccce00

Browse files
committed
⚙️ fixed: fix test conf reorder.
1 parent 4868d18 commit 6ccce00

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

tests/test_conf.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,18 @@ def test_load_file(target_path: Path):
155155

156156

157157
def test_load_file_filter(mock_conf: Path):
158-
assert exclude_created_and_updated(
158+
assert (
159+
"wf_1",
160+
{"tags": [1], "type": "Workflow", "value": 1},
161+
) in exclude_created_and_updated(
162+
list(YamlParser.finds("Workflow", path=mock_conf))
163+
)
164+
assert (
165+
"wf_2",
166+
{"tags": [2], "type": "Workflow", "value": 2},
167+
) in exclude_created_and_updated(
159168
list(YamlParser.finds("Workflow", path=mock_conf))
160-
) == [
161-
("wf_1", {"tags": [1], "type": "Workflow", "value": 1}),
162-
("wf_2", {"tags": [2], "type": "Workflow", "value": 2}),
163-
]
169+
)
164170

165171
assert exclude_created_and_updated(
166172
list(YamlParser.finds("Workflow", path=mock_conf, tags=[1]))

0 commit comments

Comments
 (0)