Skip to content

Commit

Permalink
PR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarmoise authored and fruch committed Sep 24, 2024
1 parent c21b95b commit ecdd75c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test_internal_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,8 @@
}
]

@pytest.mark.parametrize("test_case", test_cases, ids=[tc["id"] for tc in test_cases])
def test_parse_tasks(test_case):
output = test_case["output"]
expected_tasks = test_case["expected_tasks"]

@pytest.mark.parametrize("output, expected_tasks", [pytest.param(t["output"], t["expected_tasks"], id=t["id"]) for t in test_cases])
def test_parse_tasks(output, expected_tasks):
for ks, cf, expected in expected_tasks:
n = Node._parse_tasks(output, ks, cf)
assert n == expected, f"Expected {expected} tasks for {ks}.{cf}, but got {n}"

0 comments on commit ecdd75c

Please sign in to comment.