Reading-Notes
Code Fellows Python 401
Read: 02 - Testing and Modules
In Tests We Trust - TDD with Python
- Tests help you analyze the input, output, and behavior of your code.
- Test-Driven Development: strategy to write tests first
- TDD is to craft the software design first
- creates more reliable code
- test name should describe test in deatail
AAA or Arrange, Act, and Assert:
- Arrange: you need to organize the data needed to execute that piece of code (input);
- Act: here you will execute the code being tested (exercise the behaviour);
- Assert: after executing the code, you will check if the result (output) is the same as you were expecting.
Three step test cycle:
- Write a failing - test shouuld fail
- Write a feature and run it through the test - test should pass by the end of this step
- Refactor the Code - make it look nice

If name equals main
- A module is a file containing Python definitions and statements
- The file name is the module name with the suffix .py appended.
Recursion
The process in which a function calls itself directly or indirectly
- Recursive-
Video:What on Earth is Recursion
Bookmark and Review
- Google for Education: Python Lists
- Google for Education: Python Strings
- Python Modules and Packages
- Pytest Documentation
- PyTest Tutorial - Up to section Running tests in parallel