Repository navigation
Commit 659cda7
test: pin that every function-kind row names something real
`_FUNCTION_KINDS` holds the `user_defined` wrapper, factory, and
`register_*` method as strings, looked up during `with_extensions` so
the import stays out of this module's cycle. The cost is that a typo
in a row surfaces as an `AttributeError` part-way through an install
rather than at import, and `test_every_component_field_has_an_installer`
does not catch it -- that one compares field names, which a bad
`wrapper` or `factory` leaves untouched.
The three rows that exist today are each covered end to end by a
registration test, so this is for the fourth, which may well be added
before its own behaviour test is.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent e688948 commit 659cda7
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1674 | 1674 | | |
1675 | 1675 | | |
1676 | 1676 | | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
1677 | 1697 | | |
1678 | 1698 | | |
1679 | 1699 | | |
| |||
0 commit comments