Commit 8520647
committed
fix(slack): CI fixes β mypy auth_test typing + portable test assertions
- mypy didn't like `(auth_test() or {}).get(...)` (dict literal types as
`dict[Never, Never]`); use the same shape `thread.py` already uses.
- `test_miss_then_hit_calls_underlying_once` asserted `first is second`,
which fails on serializing cache backends (Redis in CI hands back a
fresh deserialized copy). The contract worth pinning is one underlying
fetch β drop the identity check.
- `test_build_description_renders_labeled_mention_for_each_author` put
the mentioner as the last message, so trailing-placeholder pop removed
its entry. Add a follow-up message after it.
- `test_wraps_diff_in_dedicated_tag` rejected any occurrence of the
original context tag, but the update block's header text references
the original tag in prose. Anchor the assertion on shape β the block
doesn't open/close with `<slack_thread_context>`.1 parent 8cd05ca commit 8520647
3 files changed
Lines changed: 14 additions & 7 deletions
File tree
- posthog/temporal
- ai/slack_app/activities
- tests/ai/slack_app/activities
- products/slack_app/backend/tests/services/slack_messages
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
651 | | - | |
| 651 | + | |
| 652 | + | |
652 | 653 | | |
653 | 654 | | |
654 | 655 | | |
| |||
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
| |||
298 | 301 | | |
299 | 302 | | |
300 | 303 | | |
301 | | - | |
302 | | - | |
303 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
304 | 310 | | |
305 | 311 | | |
306 | 312 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
0 commit comments