Commit 2cfa4af
committed
test: harden plural subgraphs harness against fixture errors
Two defensive checks added per PR review feedback:
1. _compile_subgraphs_map now raises ValueError if an entry's `name`
field is present and disagrees with the dict key, or if the name
already exists in the registry (collision with the singular
subgraph: form or duplicate plural entry). Both are fixture
authoring bugs the harness should surface, not paper over.
2. _unsupported_directive now also walks every entry under the
plural `subgraphs:` map. A future fixture with fan_out or a flaky
directive inside a nested subgraph will skip cleanly instead of
failing noisily.1 parent 78a1597 commit 2cfa4af
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
| |||
139 | 142 | | |
140 | 143 | | |
141 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
142 | 154 | | |
143 | 155 | | |
144 | 156 | | |
| |||
0 commit comments