Documenting the test_modify_context and context_modified_app methods
authorChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 14 May 2013 19:29:23 +0000 (14:29 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 14 May 2013 19:29:23 +0000 (14:29 -0500)
mediagoblin/tests/test_pluginapi.py

index de43534fa487d62d27273d6a5643e6bda2b2cdc3..74a00ce0b44c418598604118915c9a3f5a92d29d 100644 (file)
@@ -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!