Commit b5a15be
test: fix transaction management in integration tests
Remove explicit commit() calls that close transactions within test fixtures.
The db_session fixture uses session.begin() context manager which expects
commits to happen on context exit, not manually within the test.
Fixed tests:
- test_full_guild_with_all_configs_lifecycle
- test_cascade_delete_all_related_configs
- test_guild_with_multiple_sotags_and_users
- test_duplicate_guild_id_rejected
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 7008e68 commit b5a15be
1 file changed
+0
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | 285 | | |
287 | 286 | | |
288 | 287 | | |
| |||
297 | 296 | | |
298 | 297 | | |
299 | 298 | | |
300 | | - | |
301 | 299 | | |
302 | 300 | | |
303 | 301 | | |
| |||
334 | 332 | | |
335 | 333 | | |
336 | 334 | | |
337 | | - | |
338 | 335 | | |
339 | 336 | | |
340 | 337 | | |
| |||
532 | 529 | | |
533 | 530 | | |
534 | 531 | | |
535 | | - | |
536 | 532 | | |
537 | 533 | | |
538 | 534 | | |
| |||
600 | 596 | | |
601 | 597 | | |
602 | 598 | | |
603 | | - | |
604 | 599 | | |
605 | 600 | | |
606 | 601 | | |
607 | 602 | | |
608 | | - | |
609 | 603 | | |
610 | 604 | | |
611 | 605 | | |
| |||
0 commit comments