Commit 3dd4a6d
test: lock that the deck list omits cards (#58)
Port the regression test from litestar-sqlalchemy-template#33. The Deck
response contract is two-shaped: light `Deck` for list/create/update,
`DeckWithCards` for get_deck. No test asserted that `cards` is absent
from list responses, so the contract wasn't pinned — the existing tests
passed under both the old single-schema design and the split.
test_list_decks_omits_cards creates a deck with a card, then asserts the
list item has no `cards` key. It would catch a regression that re-added
`cards` to the light contract. test_get_one_deck already locks the other
half (detail includes cards).
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 531565d commit 3dd4a6d
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
38 | 48 | | |
39 | 49 | | |
40 | 50 | | |
| |||
0 commit comments