Source: https://docs.google.com/presentation/d/1YXTMK_CE09NYfhKHiE4HGQj0Cf1ojXJyJbcVYi38N84/edit#slide=id.p
Continuation of Sets, Pytests
Unit Testing: What is it?
- Unit testing is the process where you test the smallest functional unit of code.
- Single function
- Part of the complex function
- If everything works correctly, then these tests should pass.
- Unittest: built-in mechanism in Python
- Pytest: needs to be installed (
>>> pip install pytest
)
- More popular
- Easier (?) to use
Source: https://docs.google.com/presentation/d/1kecWcUDhaDn7r3lzE0gM5HyZMwJeFoG86l4rpZhvCQw/edit#slide=id.p