Commit 3ea418e
committed
fix(spp_approval,spp_dci_client): add auto=True to system approval and fix test log ordering
Pass auto=True to _do_approve in _action_approve_system so automated approvals
show "(auto)" in activity feedback and skip submitter notification, matching the
intent of system-initiated approvals.
Fix reversed log assertions in test_401_retry_creates_two_log_entries: due to
try-finally semantics with recursive calls, the inner retry's finally creates
the success log first (lower ID), so with order="id desc" logs[0] is the 401
entry and logs[1] is the success entry.1 parent b14a931 commit 3ea418e
File tree
3 files changed
+14
-11
lines changed- spp_approval/models
- spp_dci_client
- models
- tests
3 files changed
+14
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
| 359 | + | |
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
403 | 402 | | |
404 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
405 | 408 | | |
406 | 409 | | |
407 | 410 | | |
| |||
0 commit comments