From the course: Secure Coding in Python
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Testing and security - Python Tutorial
From the course: Secure Coding in Python
Testing and security
Jacob Kaplan-Moss was one of the earlier contributors to the Django project and a leader in the Python open source ecosystems, once said, "Code without tests is broken by design." I couldn't agree more with this statement. Automated testing ensures that sensitive data is not exposed. It keeps the integrity of authentication and permission, and it lets us lock in security fixes so that there are no regressions. Now, there are various types of automated tests, whether be it end-to-end tests or unit tests, and I think all of them are incredibly beneficial, and we shouldn't debate about which ones are more and less appropriate. I think there's room for all of them, and all of them should be implemented. We should never believe that manual testing should be a substitute to automated testing, while there is also an importance to manual tests. Let's have a look at what we mean when we lock in a security fix. So I'm going to navigate to 05_03_begin. And I'll go ahead and go to post tests…