The second edition of this hands-on guide takes you through the development of a real web application from start to finish, showcasing the practical benefits of test-driven development (TDD) with Python. You’ll learn to write and run tests before developing each component of your app, ensuring you only write the necessary code to pass those tests. The outcome? Clean, efficient code that works seamlessly.
Throughout this journey, you’ll also grasp the fundamentals of Django, Selenium, Git, jQuery, and Mock, along with the latest web development techniques. Updated for Python 3.6, this book is perfect for elevating your Python skills by demonstrating how TDD fosters simple designs and builds confidence.
Here’s what you’ll explore:
- Dive into the TDD workflow, including the unit test/code cycle and refactoring.
- Use unit tests for classes and functions, and functional tests for user interactions in the browser.
- Discover when and how to use mock objects, and understand the pros and cons of isolated vs. integrated tests.
- Test and automate your deployments with a staging server.
- Apply tests to third-party plugins integrated into your site.
- Run tests automatically using a Continuous Integration environment.
- Use TDD to build a REST API with a front-end Ajax interface.
For more insights and resources on Python and web development, visit ThinkJava.net.
Comments