TEST012warningPro

tests-hit-live-services

Test constructs a real external-service client (OpenAI, Stripe, AWS...) with no mocking in sight.

Applies to: JavaScript, Python, TypeScript

Why this matters

A test that calls a live service only passes where the credentials exist — usually one configured laptop. In CI it fails keyless (or worse, silently burns quota and flakes on network). Mock the client at the boundary, or the suite can never gate anything.

Catch it before it ships

pip install stablestack # or: npx stablestackstablestack # scans your project, TEST012 includedstablestack explain TEST012

TEST012 is part of the Pro rule set. See pricing — the free tier ships 25 checks with no signup.

False positive in your codebase? Suppress a single line with # noqa: TEST012