Adding Extension tests to Djblets
Review Request #1687 — Created June 27, 2010 and submitted — Latest diff uploaded
This is the first set of tests for the extension framework classes. There'll be more, don't worry. I'm using Mock here (http://pypi.python.org/pypi/mock/0.6.0), so you'll need to install it with easy_install to run these tests. I've also removed the manager argument in the ExtensionInfo constructor, since the manager is assigned to an Extension automatically by ExtensionManager (extensions/base.py line 333). Open to all suggestions / criticisms / feedback. Note: not sure why it's not included in this diff, but I've also added a test/ folder to extensions, with admin_urls.py and __init__.py. This lets ExtensionTest pass.
All Djblets tests pass.
Diff Revision 2
This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.
orig
1
2
3
djblets/extensions/base.py |
---|
djblets/extensions/tests.py |
---|
tests/settings.py |
---|