From the course: Debug Your Code with AI

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Easier debugging with tests

Easier debugging with tests

- [Instructor] When we have output from tests, it makes it much easier for us to do some fixing because what is the number one thing that models love when we are interacting with them? Well, they love text. And if we have something like this and if we have rich texts, well, it will be able to give us better suggestions. In this case, we want to have as much context and useful context as possible. And tests, most of the time, there's some exceptions, but most of the time will give us accurate, granular information as to what is going on. So in this case, I just ran all the tests and we have eight failures, so we have seven passing. There's one in particular that is kind of interesting, which is this one. It says that the path, no such file or directory: 'None/bin. So there's something going on there and that is happening in functional test functions and it's also happening in test_file. But if we go and take a look at…

Contents