In this step, you will run the existing unit tests and add some of your own.
- Look at the existing unit tests:
christie@paw-paw:~/catinabox$ ls tests/unit
We have two test files:
- Run the existing unit tests:
py.test tests/unit
-
Add more unit tests to both
test_pantry.py
andtest_cattery.py
until you are confident that they are well covered.Verify your tests are working by intentionally breaking them (i.e. change the logic in
Cattery
andPantry
to be incorrect and ensure your tests fail). -
If you get stuck, take a peek at [the solution](TODO: git tag).