Skip to Content
Hands-On Reactive Programming with Python
book

Hands-On Reactive Programming with Python

by Romain Picard
October 2018
Intermediate to advanced
420 pages
10h 26m
English
Packt Publishing
Content preview from Hands-On Reactive Programming with Python

Summary

Having read this chapter, you should now be able to test your code, and debug it when issues are found.

This chapter described how testing can be done, in a way that is fully automated so that it can be integrated in continuous integration systems. The Python standard library is a solid foundation on which RxPY and asynchronous code can be tested rather easily. You should also understand why pure functions are easier to test than side-effects: they can be fully tested by using dependency injection, which is easier to use than stubs or mocks.

Logging is a subject in-between testing and debugging. It can be useful during the initial testing phases, or when regressions are detected. One major benefit of ReactiveX here is that, once a ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Programming with Design Patterns

Python Programming with Design Patterns

James W. Cooper

Publisher Resources

ISBN: 9781789138726Supplemental Content