From b008a4887ab34d2e6722e063ad1e5afd869ca00d Mon Sep 17 00:00:00 2001 From: Daniel Petty Date: Sat, 14 Nov 2026 10:39:09 +0000 Subject: [PATCH 1/4] fix(roadmap): refuse a behavior verify that runs no test (#3463) --- .../.openspec.yaml | 3 ++ .../design.md | 19 +++++++ .../proposal.md | 40 +++++++++++++++ .../specs/roadmap-stage/tests-gate/spec.md | 20 ++++++++ .../tasks.md | 20 ++++++++ .../specs/roadmap-stage/tests-gate/spec.md | 19 +++++++ src/devops_cli/lang/en/messages.py | 4 ++ src/devops_cli/roadmap/stage/stage_form.py | 44 ++++++++++++++++ .../roadmap/stage/test_roadmap_stage_form.py | 51 +++++++++++++++++-- .../roadmap/stage/test_roadmap_stage_plan.py | 11 ++-- 10 files changed, 222 insertions(+), 9 deletions(-) create mode 100644 openspec/changes/archive/2026-11-14-3463-refuse-a-behavior-group-verify-that/.openspec.yaml create mode 100644 openspec/changes/archive/2026-11-14-3463-refuse-a-behavior-group-verify-that/design.md create mode 100644 openspec/changes/archive/2026-11-14-3463-refuse-a-behavior-group-verify-that/proposal.md create mode 100644 openspec/changes/archive/2026-11-14-3463-refuse-a-behavior-group-verify-that/specs/roadmap-stage/tests-gate/spec.md create mode 100644 openspec/changes/archive/2026-11-14-3463-refuse-a-behavior-group-verify-that/tasks.md diff --git a/openspec/changes/archive/2026-11-14-3463-refuse-a-behavior-group-verify-that/.openspec.yaml b/openspec/changes/archive/2026-11-14-3463-refuse-a-behavior-group-verify-that/.openspec.yaml new file mode 100644 index 0000000000..26d6fa257e --- /dev/null +++ b/openspec/changes/archive/2026-11-14-3463-refuse-a-behavior-group-verify-that/.openspec.yaml @@ -0,0 +1,3 @@ +schema: spec-driven +created: 2026-11-14 +skip_specs: false diff --git a/openspec/changes/archive/2026-11-14-3463-refuse-a-behavior-group-verify-that/design.md b/openspec/changes/archive/2026-11-14-3463-refuse-a-behavior-group-verify-that/design.md new file mode 100644 index 0000000000..f07702fd3f --- /dev/null +++ b/openspec/changes/archive/2026-11-14-3463-refuse-a-behavior-group-verify-that/design.md @@ -0,0 +1,19 @@ +# Design + +## Decisions + +**The rule reads the command's tokens, not the step's parser.** `shlex.split` gives the tokens of a `uv run devops ci test ` command, and a token whose path is a test module under `tests/` is a module the command runs. A directory token, such as `tests/roadmap/`, is no module. A token with shell syntax around it stays a path and not a module, so the rule never reads a command that the step refuses. + +**The group's modules come from its own text.** The `test` task names the module, and `changes`, `creates` and `reads` name the module that the group touches. A behavior group that writes its test in the task text but creates the file through a group path is accepted, as the sample group is. + +**A negative search stays accepted.** A behavior group may prove a removed name with `! git grep`, as the rule of #3427 accepts, and no test module exists for it. + +**A command with a form problem gets the form problem only.** A second problem for the same command tells the model nothing new, and `form_problems` already refuses a command that the step cannot run. + +**The message names the module that the group should run.** The model fixes the command from the problem alone, as it does for every other form problem. + +## Rejected alternatives + +- **A rule in `check_proposal` rather than `form_problems`.** The fault is the form of a command, which `form_problems` already judges, and the two checks share the command parse. +- **Accept a test directory.** A directory runs every test, and the step then proves more than the group, but it does not prove the group's test: the group's module may not exist yet in a way that the command names. +- **Require the module of the `test` task only.** A group may write its test in a file that a `creates` path names and a task sentence that the `test` text does not name in a code span. diff --git a/openspec/changes/archive/2026-11-14-3463-refuse-a-behavior-group-verify-that/proposal.md b/openspec/changes/archive/2026-11-14-3463-refuse-a-behavior-group-verify-that/proposal.md new file mode 100644 index 0000000000..15c6a4dafb --- /dev/null +++ b/openspec/changes/archive/2026-11-14-3463-refuse-a-behavior-group-verify-that/proposal.md @@ -0,0 +1,40 @@ +# Proposal: #3463 + +## Why + +The stage form check accepts a `behavior` group whose `verify` command runs no test. `_behavior_problems` requires a `test` and a `verify`, and `form_problems` judges the form of the command (#3427), but no rule reads the command's target. A behavior group with `uv run devops ci docs` or `uv run devops ci test tests/roadmap/` passes, and the step proves nothing about the behavior that the group changes. The prompt at `src/devops_cli/ai/tasks/roadmap_stage_change.md` already says that a behavior group's `verify` runs its test; no check enforces it. Closes #3463. + +## What Changes + +- `form_problems` refuses a `behavior` group whose `verify` command names no test module of the group, or names a test module that `test`, `changes`, `creates` and `reads` do not name. A test directory is no test module. A negative search stays accepted, and a command with a form problem gets only the form problem. +- The problem names the group, the command and the test module that the group should run. +- The stage prompt needs no change: it states the rule. +- The change fits one pull request. + +## Capabilities + +### New Capabilities + +None. + +### Modified Capabilities + +- `roadmap-stage/tests-gate`: A behavior group runs a test module of the group. + +## Impact + +- Code: `src/devops_cli/roadmap/stage/stage_form.py`, `src/devops_cli/lang/en/messages.py` +- Tests: `tests/roadmap/stage/test_roadmap_stage_form.py`, `tests/roadmap/stage/test_roadmap_stage_plan.py` + +## Feasibility + +Read on 2026-11-14 against `origin/main` at `04107728d`. + +- The check that accepts the group: `src/devops_cli/roadmap/stage/stage_form.py:247:def form_problems`, and `src/devops_cli/roadmap/stage/stage_change.py:585:def _behavior_problems` requires only the presence of `test` and `verify`. +- The gap reproduces on the sample group of `tests/support/builders.py`: `form_problems([group with verify="uv run devops ci docs"])` returns `[]`, and so does `uv run devops ci test tests/roadmap/`. +- The prompt states the rule: `src/devops_cli/ai/tasks/roadmap_stage_change.md:18`, a `behavior` group's `verify` runs its test. +- The test-module test lives in the same module: `src/devops_cli/roadmap/stage/stage_form.py:147:def _is_test_module`. + +## Existing Tool Considered + +No open, maintained tool checks the verify of a repository-specific plan. The rule extends `form_problems`, which already parses each command with `shlex.split`. The cost is about 2,000 tokens to build and test, and about 40 lines of code. diff --git a/openspec/changes/archive/2026-11-14-3463-refuse-a-behavior-group-verify-that/specs/roadmap-stage/tests-gate/spec.md b/openspec/changes/archive/2026-11-14-3463-refuse-a-behavior-group-verify-that/specs/roadmap-stage/tests-gate/spec.md new file mode 100644 index 0000000000..7109f14109 --- /dev/null +++ b/openspec/changes/archive/2026-11-14-3463-refuse-a-behavior-group-verify-that/specs/roadmap-stage/tests-gate/spec.md @@ -0,0 +1,20 @@ +## ADDED Requirements + +### Requirement: A behavior group runs a test module of the group +`form_problems` SHALL refuse a `behavior` group whose `verify` command names no test module, or names a test module that its `test`, `changes`, `creates` and `reads` do not name. A directory under `tests/` SHALL be no test module. A negative search SHALL stay accepted, and a command with a form problem SHALL get the form problem only. The problem SHALL name the group, the command and the test module that the group should run. + +#### Scenario: A command that runs no test module +- **WHEN** a behavior group has the verify `uv run devops ci docs` and the test module `tests/test_sample.py` +- **THEN** `form_problems` returns one problem that names the group, the command and `tests/test_sample.py` + +#### Scenario: The verify names a test directory +- **WHEN** a behavior group has the verify `uv run devops ci test tests/roadmap/` and the test module `tests/roadmap/test_roadmap_stage_form.py` +- **THEN** `form_problems` returns one problem for that group + +#### Scenario: The group runs its own test module +- **WHEN** a behavior group has the verify `uv run devops ci test tests/test_sample.py` and its `test` text names `tests/test_sample.py` +- **THEN** `form_problems` returns no problem for that group + +#### Scenario: An other group runs another command +- **WHEN** an `other` group has the verify `uv run devops ci docs` +- **THEN** `form_problems` returns no problem for that group diff --git a/openspec/changes/archive/2026-11-14-3463-refuse-a-behavior-group-verify-that/tasks.md b/openspec/changes/archive/2026-11-14-3463-refuse-a-behavior-group-verify-that/tasks.md new file mode 100644 index 0000000000..e99c7b7c12 --- /dev/null +++ b/openspec/changes/archive/2026-11-14-3463-refuse-a-behavior-group-verify-that/tasks.md @@ -0,0 +1,20 @@ +# Tasks + +## 1. Refuse a behavior verify that runs no test + +Kind: behavior. Reads: `src/devops_cli/roadmap/stage/stage_form.py`, `src/devops_cli/roadmap/stage/stage_change.py`, `src/devops_cli/ai/tasks/roadmap_stage_change.md`. Changes: `src/devops_cli/roadmap/stage/stage_form.py`, `src/devops_cli/lang/en/messages.py`, `tests/roadmap/stage/test_roadmap_stage_form.py`, `tests/roadmap/stage/test_roadmap_stage_plan.py`. + +- [x] 1.1 Add the rule to `form_problems` for a `behavior` group, with the problem text in `RoadmapMessages` + - Verification: `$ uv run devops ci test tests/roadmap/stage/test_roadmap_stage_form.py` passes +- [x] 1.2 Add the four cases: no test module, a test directory, the group's own module, and an `other` group + - Verification: `$ uv run devops ci test tests/roadmap/stage/test_roadmap_stage_form.py` passes +- [x] 1.3 Keep the existing plan tests true, where a test of the path rule uses a behavior group with a verify of another module + - Verification: `$ uv run devops ci test tests/roadmap/stage` passes + +## 2. Run the gates + +Kind: other. Reads: `tests/roadmap/`. Changes: none. + +- [x] 2.1 Run the gate of the branch + - Verification: `$ uv run devops ci --check --only lint,format,typecheck` passes + - Verification: `$ uv run devops ci docs` passes diff --git a/openspec/specs/roadmap-stage/tests-gate/spec.md b/openspec/specs/roadmap-stage/tests-gate/spec.md index 64074aae76..5139adc333 100644 --- a/openspec/specs/roadmap-stage/tests-gate/spec.md +++ b/openspec/specs/roadmap-stage/tests-gate/spec.md @@ -226,3 +226,22 @@ The problem of a test path that names no file of the commit SHALL end with the s #### Scenario: A text that names a test file of the commit passes - **WHEN** The scanned text names `tests/roadmap/test_roadmap_limit_classes.py` and the commit holds that file. - **THEN** The check reports no missing path. + +### Requirement: A behavior group runs a test module of the group +`form_problems` SHALL refuse a `behavior` group whose `verify` command names no test module, or names a test module that its `test`, `changes`, `creates` and `reads` do not name. A directory under `tests/` SHALL be no test module. A negative search SHALL stay accepted, and a command with a form problem SHALL get the form problem only. The problem SHALL name the group, the command and the test module that the group should run. + +#### Scenario: A command that runs no test module +- **WHEN** a behavior group has the verify `uv run devops ci docs` and the test module `tests/test_sample.py` +- **THEN** `form_problems` returns one problem that names the group, the command and `tests/test_sample.py` + +#### Scenario: The verify names a test directory +- **WHEN** a behavior group has the verify `uv run devops ci test tests/roadmap/` and the test module `tests/roadmap/test_roadmap_stage_form.py` +- **THEN** `form_problems` returns one problem for that group + +#### Scenario: The group runs its own test module +- **WHEN** a behavior group has the verify `uv run devops ci test tests/test_sample.py` and its `test` text names `tests/test_sample.py` +- **THEN** `form_problems` returns no problem for that group + +#### Scenario: An other group runs another command +- **WHEN** an `other` group has the verify `uv run devops ci docs` +- **THEN** `form_problems` returns no problem for that group diff --git a/src/devops_cli/lang/en/messages.py b/src/devops_cli/lang/en/messages.py index 9239a10212..7d2a626828 100644 --- a/src/devops_cli/lang/en/messages.py +++ b/src/devops_cli/lang/en/messages.py @@ -4816,6 +4816,10 @@ class RoadmapMessages: "Group {group} gives the `verify` command `{command}`, and the step cannot run it: " "{reason}. Give `uv run devops ` or `! git grep -n src/ tests/`." ) + stage_problem_behavior_verify_test: str = ( + "Group {group} gives the `verify` command `{command}`, which runs no test module of the " + "group. Run {module}." + ) stage_problem_manifest_kind: str = ( "Group {group} has the kind other and changes `{path}`. " "Use the kind manifest for a group that creates or changes a case path." diff --git a/src/devops_cli/roadmap/stage/stage_form.py b/src/devops_cli/roadmap/stage/stage_form.py index 058b4338ad..f92b1f0e34 100644 --- a/src/devops_cli/roadmap/stage/stage_form.py +++ b/src/devops_cli/roadmap/stage/stage_form.py @@ -89,6 +89,49 @@ def _verify_problems(number: int, command: str) -> list[str]: return problems +def _test_modules_in(text: str | None) -> list[PurePosixPath]: + """The test modules that `text` names in code spans, in order.""" + if text is None: + return [] + found = (PurePosixPath(span[1:-1]) for span in _CODE_SPAN.findall(text)) + return [path for path in found if _is_test_module(path)] + + +def _behavior_test_run_problems(number: int, group: StageGroup) -> list[str]: + """The problem of a `behavior` group whose `verify` runs no test module of the group (#3463): + the command must name a test module that `test`, `changes`, `creates` or `reads` names.""" + if group.kind != "behavior" or group.verify is None: + return [] + if not is_valid_verify(group.verify) or negative_search_parts(group.verify) is not None: + # The form rule refuses another command, and a negative search proves a removed name. + return [] + command = group.verify.strip() + try: + words = shlex.split(command) + except ValueError: + # The form rule refuses the command line, so it reports the only problem. + return [] + ran = [PurePosixPath(word) for word in words] + ran = [path for path in ran if _is_test_module(path)] + candidates = [ + *_test_modules_in(group.test), + *( + path + for path in map(PurePosixPath, (*group.changes, *group.creates, *group.reads)) + if _is_test_module(path) + ), + ] + if ran and any(path in candidates for path in ran): + return [] + return [ + MESSAGES.roadmap.stage_problem_behavior_verify_test.format( + group=number, + command=shown(command, CONST_ROADMAP_IMPLEMENT_VERIFY_CHARS), + module=f"`{candidates[0]}`" if candidates else "a test module of the group", + ) + ] + + def _manifest_verify_problems(number: int, group: StageGroup) -> list[str]: """The problem of the `verify` command of a `manifest` group: it must be `uv run devops ci test` followed by one path of the group or its folder.""" @@ -255,6 +298,7 @@ def form_problems(groups: Sequence[StageGroup]) -> list[str]: problems.extend(_task_problems(number, group)) if group.verify is not None: problems.extend(_verify_problems(number, group.verify)) + problems.extend(_behavior_test_run_problems(number, group)) problems.extend(_manifest_verify_problems(number, group)) if group.kind == "other": for case_path in (*group.changes, *group.creates): diff --git a/tests/roadmap/stage/test_roadmap_stage_form.py b/tests/roadmap/stage/test_roadmap_stage_form.py index 82f312eb7c..61001451cb 100644 --- a/tests/roadmap/stage/test_roadmap_stage_form.py +++ b/tests/roadmap/stage/test_roadmap_stage_form.py @@ -115,17 +115,28 @@ def test_a_pytest_verify_command_is_refused_with_the_form_to_use() -> None: "verify", [ f"uv run devops ci test {MIRRORED}", + "! git grep -n -w old_name src/ tests/", + ], +) +def test_a_test_run_or_a_negative_search_is_a_verify_command(verify: str) -> None: + plan = _plan(CODE, MIRRORED, creates=(MIRRORED,), verify=verify) + + assert _problems(plan) == [] + + +@pytest.mark.parametrize( + "verify", + [ "uv run devops ci", "uv run devops openspec check", "uv run devops docs check", "uv run devops k8s image-pins", - "! git grep -n -w old_name src/ tests/", ], ) -def test_a_devops_command_or_a_negative_search_is_a_verify_command(verify: str) -> None: - plan = _plan(CODE, MIRRORED, creates=(MIRRORED,), verify=verify) +def test_a_project_command_is_a_verify_command_of_an_other_group(verify: str) -> None: + group = _group(kind="other", test=None, verify=verify) - assert _problems(plan) == [] + assert form_problems([group]) == [] @pytest.mark.parametrize( @@ -660,3 +671,35 @@ def test_a_manifest_verify_that_runs_a_path_of_the_group_is_accepted() -> None: ) assert form_problems([group]) == [] + + +# ── A behavior group runs its test (#3463) ──────────────────────────────────── + + +def test_a_behavior_group_that_runs_no_test_module_is_refused() -> None: + (problem,) = form_problems([_group(verify="uv run devops ci docs")]) + + assert ( + problem.startswith("Group 1 gives the `verify` command `uv run devops ci docs`"), + "tests/test_sample.py" in problem, + ) == (True, True) + + +def test_a_verify_that_names_a_test_directory_is_refused() -> None: + (problem,) = form_problems([_group(verify="uv run devops ci test tests/roadmap/")]) + + assert problem.startswith( + "Group 1 gives the `verify` command `uv run devops ci test tests/roadmap/`" + ) + + +def test_a_behavior_group_that_runs_its_test_module_is_accepted() -> None: + group = _group(verify="uv run devops ci test tests/test_sample.py") + + assert form_problems([group]) == [] + + +def test_an_other_group_that_runs_no_test_module_is_accepted() -> None: + group = _group(kind="other", test=None, verify="uv run devops ci docs") + + assert form_problems([group]) == [] diff --git a/tests/roadmap/stage/test_roadmap_stage_plan.py b/tests/roadmap/stage/test_roadmap_stage_plan.py index b649a31a73..776a26cf2b 100644 --- a/tests/roadmap/stage/test_roadmap_stage_plan.py +++ b/tests/roadmap/stage/test_roadmap_stage_plan.py @@ -1540,12 +1540,13 @@ def test_a_path_in_a_verify_command_is_checked_and_a_created_path_passes( model_fake: ModelFake, openspec: OpenSpecFake, ) -> None: - model_fake.answer( - _naming( - "src/devops_cli/sample.py", verify="uv run devops ci test tests/old/test_sample.py" - ), - make_stage_proposal(), + naming = _naming( + "src/devops_cli/sample.py", verify="uv run devops ci test tests/old/test_sample.py" + ) + group = naming.groups[0].model_copy( + update={"test": "Run `tests/old/test_sample.py` for the changed path"} ) + model_fake.answer(make_stage_proposal(groups=[group]), make_stage_proposal()) plan = _plan(store, stage_repo) From 636cc9d6ec76c9197445f668b4898e06cfdbbd40 Mon Sep 17 00:00:00 2001 From: Daniel Petty Date: Sat, 14 Nov 2026 10:53:42 +0000 Subject: [PATCH 2/4] fix(roadmap): report only the form problem of a bad verify (#3463) --- src/devops_cli/roadmap/stage/stage_form.py | 2 +- .../roadmap/implement/test_roadmap_implement_negative_search.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devops_cli/roadmap/stage/stage_form.py b/src/devops_cli/roadmap/stage/stage_form.py index f92b1f0e34..ab41747123 100644 --- a/src/devops_cli/roadmap/stage/stage_form.py +++ b/src/devops_cli/roadmap/stage/stage_form.py @@ -102,7 +102,7 @@ def _behavior_test_run_problems(number: int, group: StageGroup) -> list[str]: the command must name a test module that `test`, `changes`, `creates` or `reads` names.""" if group.kind != "behavior" or group.verify is None: return [] - if not is_valid_verify(group.verify) or negative_search_parts(group.verify) is not None: + if _verify_problems(number, group.verify) or negative_search_parts(group.verify) is not None: # The form rule refuses another command, and a negative search proves a removed name. return [] command = group.verify.strip() diff --git a/tests/roadmap/implement/test_roadmap_implement_negative_search.py b/tests/roadmap/implement/test_roadmap_implement_negative_search.py index 4cc9754ae8..ab3472bb57 100644 --- a/tests/roadmap/implement/test_roadmap_implement_negative_search.py +++ b/tests/roadmap/implement/test_roadmap_implement_negative_search.py @@ -247,7 +247,7 @@ def test_every_verify_form_that_the_gate_admits_is_a_command_that_the_step_runs( ] base = make_stage_proposal().groups[0].model_dump() for verify in admitted: - group = StageGroup.model_validate({**base, "verify": verify}) + group = StageGroup.model_validate({**base, "kind": "other", "test": None, "verify": verify}) assert form_problems([group]) == [], verify assert commands_failure(checkout, [verify]) is None, verify From a17bef1089427a9fc500277482d25a6b1197a4a2 Mon Sep 17 00:00:00 2001 From: Daniel Petty Date: Sat, 14 Nov 2026 11:52:25 +0000 Subject: [PATCH 3/4] test(roadmap): cover the manifest verify of the form check (#3463) --- .../roadmap/stage/test_roadmap_stage_form.py | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests/roadmap/stage/test_roadmap_stage_form.py b/tests/roadmap/stage/test_roadmap_stage_form.py index 61001451cb..08ed1f519c 100644 --- a/tests/roadmap/stage/test_roadmap_stage_form.py +++ b/tests/roadmap/stage/test_roadmap_stage_form.py @@ -703,3 +703,27 @@ def test_an_other_group_that_runs_no_test_module_is_accepted() -> None: group = _group(kind="other", test=None, verify="uv run devops ci docs") assert form_problems([group]) == [] + + +def test_a_manifest_verify_that_names_no_path_of_the_group_is_refused() -> None: + group = _group( + kind="manifest", + reads=["docs/manifest.yaml"], + changes=["src/devops_cli/sample.py", "tests/test_sample.py", "docs/manifest.yaml"], + verify="uv run devops ci test tests/other/test_x.py", + ) + + (problem,) = [text for text in form_problems([group]) if "manifest group must be" in text] + + assert "tests/other/test_x.py" in problem + + +def test_a_manifest_verify_that_names_the_folder_of_its_path_is_accepted() -> None: + group = _group( + kind="manifest", + reads=["docs/manifest.yaml"], + changes=["src/devops_cli/sample.py", "tests/test_sample.py", "docs/manifest.yaml"], + verify="uv run devops ci test docs/", + ) + + assert [text for text in form_problems([group]) if "manifest group must be" in text] == [] From 5d40686b702d0e052219b5f11f273c57f3c659d9 Mon Sep 17 00:00:00 2001 From: Daniel Petty Date: Sat, 14 Nov 2026 11:59:47 +0000 Subject: [PATCH 4/4] fix(roadmap): drop the dead form branches of the verify rule (#3463) --- src/devops_cli/roadmap/stage/stage_form.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/devops_cli/roadmap/stage/stage_form.py b/src/devops_cli/roadmap/stage/stage_form.py index ab41747123..19875f131f 100644 --- a/src/devops_cli/roadmap/stage/stage_form.py +++ b/src/devops_cli/roadmap/stage/stage_form.py @@ -89,10 +89,8 @@ def _verify_problems(number: int, command: str) -> list[str]: return problems -def _test_modules_in(text: str | None) -> list[PurePosixPath]: +def _test_modules_in(text: str) -> list[PurePosixPath]: """The test modules that `text` names in code spans, in order.""" - if text is None: - return [] found = (PurePosixPath(span[1:-1]) for span in _CODE_SPAN.findall(text)) return [path for path in found if _is_test_module(path)] @@ -106,15 +104,11 @@ def _behavior_test_run_problems(number: int, group: StageGroup) -> list[str]: # The form rule refuses another command, and a negative search proves a removed name. return [] command = group.verify.strip() - try: - words = shlex.split(command) - except ValueError: - # The form rule refuses the command line, so it reports the only problem. - return [] - ran = [PurePosixPath(word) for word in words] + # The form rule already refused a command line that shlex cannot read. + ran = [PurePosixPath(word) for word in shlex.split(command)] ran = [path for path in ran if _is_test_module(path)] candidates = [ - *_test_modules_in(group.test), + *_test_modules_in(group.test or ""), *( path for path in map(PurePosixPath, (*group.changes, *group.creates, *group.reads))