aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/testplugins
Commit message (Collapse)AuthorAgeFilesLines
* test_plugin_staticdirect now works and passes.Christopher Allan Webber2013-05-231-1/+1
| | | | This commit sponsored by Samuel Vale. Thank you!
* Simple "staticstuff" plugin for writing unit tests on plugin static asset ↵Christopher Allan Webber2013-05-233-0/+68
| | | | | | | | | | | | | | | | linking. It doesn't do much... it just has a static directory with a "bunnify" CSS file and has a unit test that returns a json encoded set of a staticdirect with both this plugin enabled and also with (theoretically) a file distributed with MediaGoblin (it isn't really, but in our case that doesn't matter.) Also set up the static_setup hook / PluginStatic object for this plugin; testing that with `./bin/gmg theme assetlink` seemed to work. (And argh, need to update that command name, I know.) This commit sponsored by Bradley Kuhn. Thanks bkuhn!
* Testing the template_context_prerender hookChristopher Allan Webber2013-05-154-3/+13
| | | | | | | | | | | This allows for modifying any context *right before render*, including access to the variables that are passed in. This test takes advantage of that and takes one of the variables, "doubleme", and modifies it (doubles it!) In our case it turns "happy" and "joy" into "happyhappy" and "joyjoy". This commit sponsored by Mark Holmquist. Thank you!
* Fully working context hooks, both template/view and global level, with testsChristopher Allan Webber2013-05-144-0/+89
| | | | | | Needs documentation though... that's coming next :) This commit sponsored by Luca Tius. Thanks Luca!
* Unit tests for plugins defining their own config_spec.ini!Christopher Allan Webber2013-05-082-0/+26
| | | | This commit sponsored by David Ahmed. Thank you!
* Let's not use reserved keywords :)Christopher Allan Webber2013-04-191-2/+2
|
* Added new tests to test hook_transform()Christopher Allan Webber2013-04-193-3/+11
|
* callable hook convenience functions.. now work, and with tests!Christopher Allan Webber2013-04-104-0/+132
- Added three "callables" test plugins. - updated callable_runone to check for unhandled_okay in the kwargs dict. All passing!