Concept Flow - Mocking external services
Test starts
Patch external service call
Run code that calls external service
Mock intercepts call and returns fake response
Test uses fake response to check behavior
Test ends
This flow shows how a test replaces an external service call with a mock, so the test controls the response and checks code behavior safely.