summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Zeidler <az@zitc.de>2013-08-17 12:17:17 +0200
committerAndreas Zeidler <az@zitc.de>2013-08-17 12:26:15 +0200
commit186c2b8b9f2c259ccb264982b2433081ca26e3bf (patch)
tree79ef59076995b879ff70b1b1e035bd754c0790bb
parent85448c73ccca42a0d4ef1318433acdbbb21328ce (diff)
downloadpyramid-186c2b8b9f2c259ccb264982b2433081ca26e3bf.tar.gz
pyramid-186c2b8b9f2c259ccb264982b2433081ca26e3bf.tar.bz2
pyramid-186c2b8b9f2c259ccb264982b2433081ca26e3bf.zip
remove test that explicitly sets a registry on the request
outside tests the router puts the registry on the request, but in tests it sometimes needs to exist as well. however, it doesn't make sense to test something that's only done in tests anyway
-rw-r--r--pyramid/tests/test_i18n.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/pyramid/tests/test_i18n.py b/pyramid/tests/test_i18n.py
index e43c642be..58af96493 100644
--- a/pyramid/tests/test_i18n.py
+++ b/pyramid/tests/test_i18n.py
@@ -248,15 +248,6 @@ class Test_get_localizer(unittest.TestCase):
result = self._callFUT(request)
self.assertEqual(result, dummy)
- def test_with_registry_on_request(self):
- from pyramid.threadlocal import get_current_registry
- registry = get_current_registry()
- request = DummyRequest()
- request.localizer = '123'
- request.registry = registry
- result = self._callFUT(request)
- self.assertEqual(result, '123')
-
def test_locale_from_registry(self):
from pyramid.threadlocal import get_current_registry
from pyramid.interfaces import ILocalizer