Commit 19104f1
test: skip Stripe test-clock test when placeholder API key is in use
test_draft_invoices_get_application_fee_amount_applied calls the live
Stripe API (stripe.Account.create, TestClock.create, etc). In CI we
copy settings.yaml.example which ships with
STRIPE_TEST_SECRET_KEY='sk_test_changeme', so the test fails the whole
pytest run with AuthenticationError and blocks PR merges.
Adding a skipif guard on the placeholder key lets CI pass without us
having to store real Stripe secrets in GitHub Actions secrets (which
the maintainer has explicitly opted out of for now). Running the test
locally with a real STRIPE_TEST_SECRET_KEY exported in settings.yaml
still exercises the full path.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 0087bbe commit 19104f1
1 file changed
Lines changed: 13 additions & 0 deletions
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
11 | 24 | | |
12 | 25 | | |
13 | 26 | | |
| |||
0 commit comments