Commit c581dc4
test: lock in instance-attribute reads in api_bootstrapper_config
Port the regression test from litestar-sqlalchemy-template#32. The
production bug fixed there (api_bootstrapper_config reading the module
-global `settings` singleton instead of `self`) is already absent here,
but there was no test guarding against it being reintroduced.
The test constructs a non-singleton Settings instance and asserts its
api_bootstrapper_config reflects that instance, not the global.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 19ca197 commit c581dc4
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments