Closed labdmitriy closed 9 months ago
Dmitry, thanks a lot for all the questions and the error corrections you sent. Rest assured I will tackle them as soon as possible. As for your questions:
pytest.approx()
is the best way to deal with that problem. Clearly, if one is testing a scientific application requirements might be more stringent, but overall the representation is always an approximation.I will try to update the series keeping in mind these questions. I'll leave this open as a reminder until I have something written to discuss. Thanks!
Hi Leonardo,
Thank you for your answer!
@labdmitriy I addressed type-checking in this new section of the second post https://www.thedigitalcatonline.com/blog/2020/09/11/tdd-in-python-with-pytest-part-2/#the-problem-of-types. Please let me know it it makes sense or if there are still open questions. It's always useful to discuss such topics!
Hi Leonardo,
Thanks a lot for your blog series!
Could you please provide some information about simple calculator's requirements and its testing using TDD:
Thank you.