Commit f0917a6
test(procrastinate): scope app fixture per-test
session-scope broke when run_worker's open_async() tore down the sync
sub-connector PsycopgConnector creates lazily for sync defer(). The
outer `with app.open():` didn't reopen it for the next test, so test 2's
defer hit AppNotOpen. Function-scoped + idempotent apply_schema is the
simplest reliable shape.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5fedc8d commit f0917a6
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
46 | | - | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
0 commit comments