_nology interview question

How do you test code?

Interview Answer

Anonymous

7 Jul 2022

I test code by trying to make it fail. I anticipate and catch errors so that they are handled before code is deployed. In Python, I create a tests folder and create a test file for each endpoint to made sure that status codes, data types, and values are returned as expected.