July 2017
Beginner to intermediate
340 pages
7h 43m
English
As we learned in Chapter 3, ;Coding, Testing and Documenting - the Virtuous Cycle, the biggest challenge when writing functional tests for a service that calls other services is to isolate all network calls.
In this section, we'll see how we can mock synchronous calls made with Requests, and asynchronous calls for Celery workers and other asynchronous processes.