Using pytest for our unit tests. Old tests were written using unittest.
When making new unit tests, add them to the tests/ directory with with prefix test_. For example, if I wanted to add tests for the Post model, I would make the file tests/test_post_model.py
Using pytest for our unit tests. Old tests were written using unittest.
When making new unit tests, add them to the
tests/
directory with with prefixtest_
. For example, if I wanted to add tests for the Post model, I would make the filetests/test_post_model.py