What kind of "reassurance" do a tool like pynguin provide? In my head tests should be written from requirements, before - or at least alongside - code.
If you do TDD, yes. But there are a lots of projects out there that don't, and write tests afterward. I do. It's usually much, much faster and easier for me to write the tests after I figure out how to make what I want to work. I sometimes need to change the API a little to be more testable, but it's still faster. In fact, if I write a test first, I have to write it with an abstract idea on how my code will work and…
Personally I use TDD to have an easy entry point to run through my code, so the first instance of a test for an api might only check status code
It makes the process very iterative, as you can continuously run through your code just by saving