Testing

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset