summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2008-11-09 03:25:39 +0000
committerChris McDonough <chrism@agendaless.com>2008-11-09 03:25:39 +0000
commit76c80642d615fa8239966dd73eab79d300e997c1 (patch)
treee3daca81b258f776280b457205ce3ce171d3b54e /docs
parentb4cafa974c8c6452a4a924838df352c95c0901aa (diff)
downloadpyramid-76c80642d615fa8239966dd73eab79d300e997c1.tar.gz
pyramid-76c80642d615fa8239966dd73eab79d300e997c1.tar.bz2
pyramid-76c80642d615fa8239966dd73eab79d300e997c1.zip
registerTemplateRenderer -> registerDummyRenderer
Diffstat (limited to 'docs')
-rw-r--r--docs/api/testing.rst2
-rw-r--r--docs/narr/unittesting.rst6
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/api/testing.rst b/docs/api/testing.rst
index 2b6e1f8ae..51b017fbf 100644
--- a/docs/api/testing.rst
+++ b/docs/api/testing.rst
@@ -11,7 +11,7 @@
.. autofunction:: registerEventListener
- .. autofunction:: registerTemplateRenderer
+ .. autofunction:: registerDummyRenderer
.. autofunction:: registerView
diff --git a/docs/narr/unittesting.rst b/docs/narr/unittesting.rst
index 8e9894c3f..b3b2321dd 100644
--- a/docs/narr/unittesting.rst
+++ b/docs/narr/unittesting.rst
@@ -58,7 +58,7 @@ unittest TestCase that used the testing API.
def test_view_fn_not_submitted(self):
from my.package import view_fn
- renderer = testing.registerTemplateRenderer('templates/show.pt')
+ renderer = testing.registerDummyRenderer('templates/show.pt')
context = testing.DummyModel()
request = testing.DummyRequest()
response = view_fn(context, request)
@@ -66,7 +66,7 @@ unittest TestCase that used the testing API.
def test_view_fn_submitted(self):
from my.package import view_fn
- renderer = testing.registerTemplateRenderer('templates/submitted.pt')
+ renderer = testing.registerDummyRenderer('templates/submitted.pt')
context = testing.DummyModel()
request = testing.DummyRequest()
request.params['say'] = 'Yo'
@@ -82,7 +82,7 @@ The first test method, ``test_view_fn_not_submitted`` tests the
``view_fn`` function in the case that no "form" values (represented by
request.params) have been submitted. Its first line registers a
"dummy template renderer" named ``templates/show.pt`` via the
-``registerTemplateRenderer`` function (a ``repoze.bfg.testing`` API);
+``registerDummyRenderer`` function (a ``repoze.bfg.testing`` API);
this function returns a DummyTemplateRenderer instance which we hang
on to for later. We then create a ``DummyRequest`` object (it
simulates a WebOb request object), and we create a ``DummyModel``