Commit 7327cd7
committed
test: cover add()-to-list and upsert()-on-scalar-root routing errors
Add two missing cases to TestRoutingErrorBehaviour:
- test_add_through_list_raises_routing_error: add() through a list node
was untested; only the scalar-node case existed.
- test_upsert_scalar_root_raises_routing_error: exercises the
_create_at(parent_keys=(), ...) branch on a non-empty document and
pins the '<root>' token in RoutingError messages.1 parent 78118d0 commit 7327cd7
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
0 commit comments