Test-Driven Web Development with Python
“Test-Driven Web Development with Python” delves into the practice of test-driven development in web development using Python. The book likely covers the importance of writing tests before code, ensuring code quality, and maintaining a robust codebase. It may explore frameworks like Django for building web applications and how to integrate testing seamlessly into the development process. Readers can expect to learn how to write effective tests, automate testing processes, and create reliable and scalable web applications following best practices in Python development.
Preface to the Third Edition: TDD in the age of AI
Is there any point in learning TDD now that AI can write code for you? A single prompt could probably generate the entire example application in this book. The truth is that it’s too early to tell. AI...
📚 Read more at Test-Driven Web Development with Python🔎 Find similar documents
CD: Continuous Deployment
Warning 🚧 Warning, this appendix is just a placeholder / rough sketch. It should have the outline of what you need to set up automated deploys tho! Why not give it a try? This is the next step after ...
📚 Read more at Test-Driven Web Development with Python🔎 Find similar documents
The Subtleties of Functionally Testing External Dependencies
You might remember from [options-for-testing-real-email] a point at which we wanted to test sending email from the server. Here were the options we considered: We could build a "real" end-to-end test,...
📚 Read more at Test-Driven Web Development with Python🔎 Find similar documents
Validation at the Database Layer
Over the next few chapters we’ll talk about testing and implementing validation of user inputs. In terms of content, there’s going to be quite a lot of material here that’s more about the specifics of...
📚 Read more at Test-Driven Web Development with Python🔎 Find similar documents
Test Fixtures and a Decorator for Explicit Waits
Warning, Chapter Recently Updated 🚧 Warning, this Chapter is freshly updated for Django 5 + Python 3.13. The code listings should have valid syntax, and I’ve been through and sense-checked the chapte...
📚 Read more at Test-Driven Web Development with Python🔎 Find similar documents
Fast Tests, Slow Tests, and Hot Lava
The database is Hot Lava! — Casey Kinsey Unless you’ve been through [appendix_purist_unit_tests] , almost all of the "unit" tests in the book should perhaps have been called integrated tests, because ...
📚 Read more at Test-Driven Web Development with Python🔎 Find similar documents
Continuous Integration (CI)
Warning, Chapter Update in Progress 🚧 Warning, this chapter is being updated, and still mostly the 2e version; Although it’s not got many code examples in, you may find it’s a little out of date. As ...
📚 Read more at Test-Driven Web Development with Python🔎 Find similar documents
Finishing "My Lists": Outside-In TDD
Warning, Chapter Recently Updated 🚧 Warning, this Chapter is freshly updated for Django 5 + Python 3.13. The code listings should have valid syntax, and I’ve been through and sense-checked the chapte...
📚 Read more at Test-Driven Web Development with Python🔎 Find similar documents
Splitting Our Tests into Multiple Files, and a Generic Wait Helper
Back to local development! The next feature we might like to implement is a little input validation. But as we start writing new tests, we’ll notice that it’s getting hard to find our way around a sin...
📚 Read more at Test-Driven Web Development with Python🔎 Find similar documents
Server-Side Debugging
Warning, Chapter Update in Progress 🚧 Warning, Chapter update for 3e in progress. This chapter has only been partially updated to Django 4, Ansible+Docker, etc. Following along may be tricky, but I h...
📚 Read more at Test-Driven Web Development with Python🔎 Find similar documents
User Authentication, Spiking, and De-Spiking
Warning, Recently Updated 🚧 This chapter has recently been updated for the third edition. Its listings now use Django 5.1 and Python 3.13. Please send feedback! [email protected] Our beautiful lists ...
📚 Read more at Test-Driven Web Development with Python🔎 Find similar documents
Deploying Our New Code
It’s time to deploy our brilliant new validation code to our live servers. This will be a chance to see our automated deploy scripts in action for the second time. At this point I always want to say a...
📚 Read more at Test-Driven Web Development with Python🔎 Find similar documents