Commit 8accbbb
[Fix] 130-telegram-bot-python — narrow test credential check to DEEPGRAM_API_KEY only (#150)
## Summary
- The test for 130-telegram-bot-python was gating on **all**
`.env.example` variables (including `TELEGRAM_BOT_TOKEN`) even though it
only exercises `transcribe_voice()`, which needs just
`DEEPGRAM_API_KEY`.
- In CI, `TELEGRAM_BOT_TOKEN` is not configured, so the test exited with
code 2 (missing credentials). The `test-existing.yml` workflow treats
any non-zero exit as a failure, creating a false-positive regression
(issue #149).
- This PR narrows the credential check to `["DEEPGRAM_API_KEY"]` so the
test runs whenever the Deepgram secret is available.
## Test plan
- [ ] CI runs the test with only `DEEPGRAM_API_KEY` set — should pass
(exit 0)
- [ ] CI runs without `DEEPGRAM_API_KEY` — should skip gracefully (exit
2)
- [ ] No changes to `src/bot.py` or `requirements.txt` — SDK pin remains
`deepgram-sdk==6.1.1`
Closes #149
🤖 Generated with [Claude Code](https://claude.ai/code)
---------
Co-authored-by: examples-bot <noreply@deepgram.com>
Co-authored-by: Claude <noreply@anthropic.com>1 parent 5b788ec commit 8accbbb
2 files changed
Lines changed: 7 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | 75 | | |
78 | 76 | | |
79 | 77 | | |
| |||
115 | 113 | | |
116 | 114 | | |
117 | 115 | | |
118 | | - | |
| 116 | + | |
119 | 117 | | |
120 | | - | |
121 | | - | |
122 | 118 | | |
123 | | - | |
124 | | - | |
125 | 119 | | |
126 | 120 | | |
127 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
20 | 15 | | |
21 | 16 | | |
22 | 17 | | |
| |||
0 commit comments