Przejdź do głównej zawartości

Posty

Wyświetlanie postów z listopad, 2023

Unit testing functions containing user input and side effects - Pytest

Testing is good for you and your code,  but sometimes can be tricky!   Attribution Flaticon A while ago, as a newbie programmer, who just finished his first course, the only thing I knew than about testing, was a big mention made by Cisco Networking Academy or Python Institute itself, claiming that unit testing is a must, is broad and complex topic, and that it will be covered in separate course... There even is a site on Python Institute dedicated to this topic, but as for present day (01.11.2023) no course is available there... but there is a chance, because they give us a time window when this course should be available ( https://pythoninstitute.org/python-for-testing-essentials )!  So while undertaking a couple of courses I stumbled upon Pytest library, and scratched UnitTest. The former was more broadly described during CS50P course brought by Harvard University, the latter was somewhat described in one of courses I've undertaken on Udemy so far. For now let's stick ...

Unit testing functions containing user input and side effects - Pytest

Testing is good for you and your code,  but sometimes can be tricky!   Attribution Flaticon A while ago, as a newbie programmer, who just finished his first course, the only thing I knew than about testing, was a big mention made by Cisco Networking Academy or Python Institute itself, claiming that unit testing is a must, is broad and complex topic, and that it will be covered in separate course... There even is a site on Python Institute dedicated to this topic, but as for present day (01.11.2023) no course is available there... but there is a chance, because they give us a time window when this course should be available ( https://pythoninstitute.org/python-for-testing-essentials )!  So while undertaking a couple of courses I stumbled upon Pytest library, and scratched UnitTest. The former was more broadly described during CS50P course brought by Harvard University, the latter was somewhat described in one of courses I've undertaken on Udemy so far. For now let's stick ...