diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-05-14 14:29:23 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-05-14 14:29:23 -0500 |
commit | 5046ca24337cadff9b95782101f0a8c4d456e15e (patch) | |
tree | bb8112df71f264a809c6e870f58237326f12f7f9 | |
parent | f7a5c7c78c6dcf3dcb3b81efbedc9a333df49fb7 (diff) | |
download | mediagoblin-5046ca24337cadff9b95782101f0a8c4d456e15e.tar.lz mediagoblin-5046ca24337cadff9b95782101f0a8c4d456e15e.tar.xz mediagoblin-5046ca24337cadff9b95782101f0a8c4d456e15e.zip |
Documenting the test_modify_context and context_modified_app methods
-rw-r--r-- | mediagoblin/tests/test_pluginapi.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mediagoblin/tests/test_pluginapi.py b/mediagoblin/tests/test_pluginapi.py index de43534f..74a00ce0 100644 --- a/mediagoblin/tests/test_pluginapi.py +++ b/mediagoblin/tests/test_pluginapi.py @@ -328,6 +328,9 @@ def test_plugin_config(): @pytest.fixture() def context_modified_app(request): + """ + Get a MediaGoblin app fixture using appconfig_context_modified.ini + """ return get_app( request, mgoblin_config=pkg_resources.resource_filename( @@ -335,6 +338,10 @@ def context_modified_app(request): def test_modify_context(context_modified_app): + """ + Test that we can modify both the view/template specific and + global contexts for templates. + """ # Specific thing passed into a page result = context_modified_app.get("/modify_context/specific/") assert result.body.strip() == """Specific page! |