Avoid live reqwest clients in Rust unit tests
reqwest usage in tests should target local servers or fakes.
Search documentation pages and rules
Search documentation pages and rules
reqwest usage in tests should target local servers or fakes.
rust.testing.real-network-in-unit-testLive HTTP couples CI to the network.
Use wiremock, axum test servers, or injected clients with deterministic responses.
The generated metadata points to critiq-rules/libs/rules/catalog/rules/rust/rust.testing.real-network-in-unit-test.rule.yaml.