- 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 ofmain()
.
- Same as Testing my twttr
- 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 anException
when it should