Testing
Dispatch provides a basic test-based testing framework for plugins. In a simple plugin, you'll need to do a few things to get it working:
Require Dispatch
Augment your plugins setup.py
to ensure that it depends on dispatch
setup(
# ...
install_requires=[
'dispatch',
]
)
Running Tests
Running tests follows the py.test standard. As long as your test files and methods are named appropriately (test_filename.py
and test_function()
) you can call out to py.test: