summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Dunklau <colin.dunklau@gmail.com>2018-09-19 17:08:09 +0200
committerColin Dunklau <colin.dunklau@gmail.com>2018-09-19 17:08:09 +0200
commit2cc524cc0e75e2242f17954c30415fb2b9ad32dd (patch)
treeab65845b4f41a40aa8a83e055cda12d8f9e7301a
parent80d7018acff59b34ddfd42031e8d766a803682dd (diff)
downloadpyramid-2cc524cc0e75e2242f17954c30415fb2b9ad32dd.tar.gz
pyramid-2cc524cc0e75e2242f17954c30415fb2b9ad32dd.tar.bz2
pyramid-2cc524cc0e75e2242f17954c30415fb2b9ad32dd.zip
Add a test with a different configurator instance
-rw-r--r--pyramid/tests/test_renderers.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pyramid/tests/test_renderers.py b/pyramid/tests/test_renderers.py
index ea5e317d3..a2f7bf8c2 100644
--- a/pyramid/tests/test_renderers.py
+++ b/pyramid/tests/test_renderers.py
@@ -630,6 +630,14 @@ class Test_get_renderer(unittest.TestCase):
result = self._callFUT('abc/def.pt', registry=self.config.registry)
self.assertEqual(result, renderer)
+ def test_it_with_isolated_registry(self):
+ from pyramid.config import Configurator
+ isolated_config = Configurator()
+ renderer = isolated_config.testing_add_renderer(
+ 'pyramid.tests:abc/def.pt')
+ result = self._callFUT('abc/def.pt', registry=isolated_config.registry)
+ self.assertEqual(result, renderer)
+
class TestJSONP(unittest.TestCase):
def _makeOne(self, param_name='callback'):
from pyramid.renderers import JSONP