Simple "staticstuff" plugin for writing unit tests on plugin static asset linking.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 22 May 2013 19:20:44 +0000 (14:20 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 23 May 2013 18:33:07 +0000 (13:33 -0500)
commit1b2cf1e823d6dfbb907449f8eab98b9011e9e48f
tree8d5f1b2b743ed18563ed7fcb640e053c282acabb
parentdf69695d9e7753ba9030be9bee4208b0c2322f54
Simple "staticstuff" plugin for writing unit tests on plugin static asset 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!
mediagoblin/tests/appconfig_static_plugin.ini [new file with mode: 0644]
mediagoblin/tests/testplugins/staticstuff/__init__.py [new file with mode: 0644]
mediagoblin/tests/testplugins/staticstuff/static/css/bunnify.css [new file with mode: 0644]
mediagoblin/tests/testplugins/staticstuff/views.py [new file with mode: 0644]