Python Web Development: Test-Driven Approach
Tags
Summary
Editor's review
Who it's for
A good fit for
- 已会写 Python、做过一两个小项目,想系统学习工程实践的开发者
- 使用 Django 或其他框架做 Web 开发,却长期不敢重构代码的人
- 计算机专业学生或转行者,希望用一个完整项目串起开发全流程
- 对单元测试、功能测试、持续集成只闻其名、缺少实操经验的读者
Not a good fit for
- 完全零基础、尚未掌握 Python 基本语法的初学者,读起来会两头顾不上
- 只想查 Django API 用法、当作速查手册使用的读者
- 严格跟随最新框架版本、需要即用型现代代码示例的团队
- 只关心前端或纯算法、不打算接触 Web 后端工程的人
Reading tips
- 务必打开编辑器跟着敲代码,不要复制粘贴;书中特意强调手打能形成肌肉记忆并训练调试能力。
- 遇到测试失败先自己排查再看书,把“红—绿—重构”的循环亲手走完一轮,比读完十章更有用。
- 版本差异较大的章节,先按书中的思路理解意图,再对照当前 Django 文档调整具体写法。
- 读完第 14 章后,可把自己的小项目改造成 TDD 流程,用功能测试守住最关键的用户路径。
About the publisher
Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.
Contents
- Preface
- Preparation and Prerequisites
- Part I TDD and Django Basics
- Chapter 1 Using Functional Tests to Help Install Django
- Chapter 2 Extending Functional Tests with the unittest Module
- Chapter 3 Using Unit Tests to Test a Simple Home Page
- Chapter 4 What's the Point of Writing These Tests
- Chapter 5 Saving User Input
- Chapter 6 Completing the Minimum Viable Website
- Part II Web Development Essentials
- Chapter 7 Beautifying the Site: Layout, Styling, and How to Test Them
- Chapter 8 Testing Deployment with a Staging Site
- Chapter 9 Automated Deployment with Fabric
- Chapter 10 Input Validation and How to Organize Tests
- Chapter 11 Simple Forms
- Chapter 12 Advanced Forms
- Chapter 13 Probing JavaScript
- Chapter 14 Deploying New Code
- Part III Advanced Topics
- Chapter 15 User Authentication, Integrating Third-Party Plugins, and the Use of JavaScript Mocking Techniques
- Chapter 16 Server-Side Authentication and Using Mocking in Python
- Chapter 17 Test Fixtures, Logging, and Server-Side Debugging
- Chapter 18 Completing the "My Lists" Page: Outside-In TDD
- Chapter 19 Test Isolation and "Listening to the Heart of the Tests"
- Chapter 20 Continuous Integration
- Chapter 21 Simple Social Features, Page Patterns, and Exercises
- Chapter 22 Fast and Slow Test Runs and Molten Lava
- Bibliography
FAQ
这本书只讲测试吗?
读之前需要什么基础?
这本书和第2版《Python测试驱动开发》是什么关系?
书中的代码版本太老还能照着做吗?
适合用来准备面试或转行吗?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.