Table of Contents for
Test-Driven Development with Python, 2nd Edition
Close
Version ebook
/
Retour
Test-Driven Development with Python, 2nd Edition
by Harry J.W. Percival
Published by O'Reilly Media, Inc., 2017
Cover
nav
Praise for Test-Driven Development with Python
Test-Driven Development with Python
Test-Driven Development with Python
Preface
Prerequisites and Assumptions
Companion Video
Acknowledgments
I. The Basics of TDD and Django
1. Getting Django Set Up Using a Functional Test
2. Extending Our Functional Test Using the unittest Module
3. Testing a Simple Home Page with Unit Tests
4. What Are We Doing with All These Tests? (And, Refactoring)
5. Saving User Input: Testing the Database
6. Improving Functional Tests: Ensuring Isolation and Removing Voodoo Sleeps
7. Working Incrementally
II. Web Development Sine Qua Nons
8. Prettification: Layout and Styling, and What to Test About It
9. Testing Deployment Using a Staging Site
10. Getting to a Production-Ready Deployment
11. Automating Deployment with Fabric
12. Splitting Our Tests into Multiple Files, and a Generic Wait Helper
13. Validation at the Database Layer
14. A Simple Form
15. More Advanced Forms
16. Dipping Our Toes, Very Tentatively, into JavaScript
17. Deploying Our New Code
III. More Advanced Topics in Testing
18. User Authentication, Spiking, and De-Spiking
19. Using Mocks to Test External Dependencies or Reduce Duplication
20. Test Fixtures and a Decorator for Explicit Waits
21. Server-Side Debugging
22. Finishing “My Lists”: Outside-In TDD
23. Test Isolation, and “Listening to Your Tests”
24. Continuous Integration (CI)
25. The Token Social Bit, the Page Pattern, and an Exercise for the Reader
26. Fast Tests, Slow Tests, and Hot Lava
Obey the Testing Goat!
A. PythonAnywhere
B. Django Class-Based Views
C. Provisioning with Ansible
D. Testing Database Migrations
E. Behaviour-Driven Development (BDD)
F. Building a REST API: JSON, Ajax, and Mocking with JavaScript
G. Django-Rest-Framework
H. Cheat Sheet
I. What to Do Next
J. Source Code Examples
Bibliography
Index
About the Author
Colophon
Next
Next Chapter
Praise for Test-Driven Development with Python
Next
Next Chapter
Praise for Test-Driven Development with Python