chore: some cleanup and checks (#2792)

* chore: clean up config a bit

* chore: add an extra check

* Apply suggestions from code review

Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
This commit is contained in:
Henry Schreiner
2026-03-24 23:51:49 -04:00
committed by GitHub
parent 5d52226105
commit 6df84da3e7
10 changed files with 35 additions and 34 deletions
+6 -7
View File
@@ -339,13 +339,12 @@ def test_resolve_cascade_merge_list(ignore_empty, rule):
if not ignore_empty:
assert answer == "b1 b2"
else:
if rule == InheritRule.PREPEND:
assert answer == "b1 b2 a1 a2"
elif rule == InheritRule.NONE:
assert answer == "b1 b2"
elif rule == InheritRule.APPEND:
assert answer == "a1 a2 b1 b2"
elif rule == InheritRule.PREPEND:
assert answer == "b1 b2 a1 a2"
elif rule == InheritRule.NONE:
assert answer == "b1 b2"
elif rule == InheritRule.APPEND:
assert answer == "a1 a2 b1 b2"
@pytest.mark.parametrize("rule", [InheritRule.PREPEND, InheritRule.NONE, InheritRule.APPEND])