Commit 5846510
chore(test): add live marker + CI guard for LLM/API discipline (pass 2) (#8)
Layer 1 of test-strategy pass 2. Three small changes:
- pyproject.toml: register the `live` pytest marker; update addopts to
deselect it by default (`-ra -m 'not live'`). attune-help makes no
LLM calls today but the marker is reserved so future tests have a
consistent home.
- tests.yml: add a CI guard step (in both the matrix job and the
test-no-authoring-extra job) that fails fast if `ANTHROPIC_API_KEY`
is set in the default test environment. Regression alarm, not
routine — GitHub Actions secrets aren't exposed unless explicitly
named in `env:`, so this only fires if someone wires a secret into
the wrong job.
- tests/README.md: replace the inline LLM-mocking section with a
pointer to `testing-conventions.md` in the attune workspace umbrella
(added in the workspace L0 PR).
Verified locally: 309 passing, branch coverage 82.31% (gate=81 holds).
Spec: /Users/patrickroebuck/attune/specs/test-strategy-pass-2/
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent 26d3c00 commit 5846510
3 files changed
Lines changed: 25 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
39 | 49 | | |
40 | 50 | | |
41 | 51 | | |
| |||
67 | 77 | | |
68 | 78 | | |
69 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
70 | 87 | | |
71 | 88 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 29 | + | |
| 30 | + | |
37 | 31 | | |
38 | 32 | | |
39 | 33 | | |
| |||
0 commit comments