Unit Tests
The CMF testing is based on the standard Python unit test module.
The creation of unit tests in python files follows a specific naming pattern, the default being
test*.py
, for example test_model.py
. Typically they should be in the same folder as the model they test.In order for the test discovery to load your tests, they must be in a folder with a
__init__.py
file, so create a __init__.py
file in your models folder.