aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_pluginapi.py
Commit message (Collapse)AuthorAgeFilesLines
* Refactor test configs.Elrond2013-04-201-24/+13
| | | | All the hook_* tests use the same config, so refactor it.
* Added new tests to test hook_transform()Christopher Allan Webber2013-04-191-0/+21
|
* Adjusting tests to use hook_handle and hook_runallChristopher Allan Webber2013-04-191-16/+17
|
* callable hook convenience functions.. now work, and with tests!Christopher Allan Webber2013-04-101-3/+3
| | | | | | | | - Added three "callables" test plugins. - updated callable_runone to check for unhandled_okay in the kwargs dict. All passing!
* tests for new pluginapi methods that can't possibly pass yet :)Christopher Allan Webber2013-04-091-0/+111
|
* Really removing nosetests things now! all assert_whatever removedChristopher Allan Webber2013-04-061-11/+10
|
* [Issue 466] Implement e-z plugin disablingWill Kahn-Greene2012-07-171-0/+20
|
* Rework plugin infrastructure to nix side-effectsWill Kahn-Greene2012-07-171-30/+27
| | | | | | | | | | | | | This reworks the plugin infrastructure so as to remove module-loading side-effects which were making things a pain in the ass to test. With the new system, there's no auto-registering meta class. Instead plugins do whatever they want and then specify a hooks dict that maps hook names to callables for the things they're tying into. The most common one (and the only one we've implemented so far) is "setup". This also simplifies the sampleplugin a little by moving the code to __init__.py.
* 401. Plugin infrastructureWill Kahn-Greene2012-05-131-0/+158
* implements installing, loading and setup for plugins * codifies configuration * has a sample plugin * docs * tests