Commit 40ce664
test
test: fix settings-mock leak that failed SESSION_MAX_AGE_SECONDS tests in CI
The shared mock_settings fixture replaced settings with a MagicMock lacking
SESSION_MAX_AGE_SECONDS, so create_app()'s SessionMiddleware wiring and the
session-max-age assertions saw a MagicMock instead of an int under certain test
orderings (green locally with tests/integration ignored, red in full CI). Give the
mock a real SESSION_MAX_AGE_SECONDS (28800) so numeric reads/comparisons hold.
Full CI unit suite now passes locally: 4076 passed.1 parent b1409ac commit 40ce664
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
122 | 125 | | |
123 | 126 | | |
124 | 127 | | |
| |||
0 commit comments