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.

READ ONLINE

Categorized in:

Python,

Last Update: September 25, 2024

Copyright Disclaimer

ThinkJava.net is a platform that shares educational materials related to programming, web development, and other technology topics. All ebooks shared on this website are provided for educational and personal reference purposes only. We do not own or claim ownership of any copyrighted materials, and all rights belong to the respective authors and publishers.

If you are the copyright holder of any material shared on ThinkJava.net and do not wish for your work to be distributed here, please contact us at [email protected]. We are committed to promptly removing any materials that violate copyright.

ThinkJava.net is not responsible for any damages or losses resulting from the use of the materials on this website. Users should comply with copyright laws and use the materials only for personal, educational purposes, without redistributing or commercializing the content without permission from the copyright holders.