Commit a0cae79
test(integration): swap bad-auth probe from markets.list to portfolio.balance
markets.list() no longer exercises the auth path — Kalshi began serving
public market data unauthenticated, so a client with bad credentials
gets a 200 back instead of 401/403 and the test "DID NOT RAISE".
Switched to portfolio.balance(), which is account-scoped and always
auth-required. Added a docstring note so future maintainers know why
the endpoint choice matters.
Closes 1 of 11 integration-test failures (#124).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent dafa1fb commit a0cae79
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
| |||
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
71 | | - | |
| 76 | + | |
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
| |||
0 commit comments