Skip to content

Commit b5f1558

Browse files
yarikopticclaude
andcommitted
test: use _GROUPING_SPECS for JSON grouping tests too
Reuse the shared _GROUPING_SPECS list (with composite groupings) in test_validate_grouping_json_cli, replacing the separate hardcoded list. Co-Authored-By: Claude Code 2.1.81 / Claude Opus 4.6 <noreply@anthropic.com>
1 parent b27cc0f commit b5f1558

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

dandi/cli/tests/test_cmd_validate.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -484,16 +484,7 @@ def test_render_text_multilevel_grouping(capsys: pytest.CaptureFixture) -> None:
484484
@pytest.mark.ai_generated
485485
@pytest.mark.parametrize(
486486
"grouping",
487-
[
488-
("path",),
489-
("severity",),
490-
("id",),
491-
("validator",),
492-
("standard",),
493-
("dandiset",),
494-
("severity", "id"),
495-
("validator", "severity"),
496-
],
487+
[("path",), *_GROUPING_SPECS],
497488
ids=lambda g: "+".join(g),
498489
)
499490
def test_validate_grouping_json_cli(

0 commit comments

Comments
 (0)