Commit ac709a2
fix(review): move module-level assert to dedicated test (tools_recipe.py)
Replaces the module-level `assert FLEET_DISPATCH_TOOLS <= GATED_TOOLS`
in tools_recipe.py with a proper pytest test in test_canonical_constant_consumption.py.
Module-level asserts are silently disabled under python -O and produce unstructured
AssertionError output; the invariant is now enforced by the test suite.
The FLEET_DISPATCH_TOOLS import is retained with # noqa: F401 as the sole
production consumer required by test_registry_constants_have_production_consumer.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent f3a53a4 commit ac709a2
2 files changed
Lines changed: 12 additions & 6 deletions
File tree
- src/autoskillit/server/tools
- tests/arch
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 33 | | |
39 | 34 | | |
40 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
0 commit comments