Commit 531565d
test: lock in instance-attribute reads in api_bootstrapper_config (#57)
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) <[email protected]>1 parent 19ca197 commit 531565d
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