Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 732 Bytes

LEARNT.md

File metadata and controls

21 lines (13 loc) · 732 Bytes
  • Using pytest library to write tests.
  • Using assert statements to do comparisons between the expected and actual output.
  • Separating different tests into different functions.
  • Using pytest.main() to run the tests instead of main().
  • Using pytest.mark.parametrize to run the same test with different inputs.
  • Using Black formatter to format my inputs.
  • Using pytest.raises(...) to check if the function raises an Exception when it should