From 09b96402ddc9f6a64b6d71d3be3b2d32c32e59df Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 6 Jan 2009 23:28:18 +0000 Subject: - The ``repoze.bfg.registry.get_options`` callable used to return only framework-specific keys and values in the dictionary it returned. It now returns all the keys and values in the dictionary it is passed *plus* any framework-specific settings culled from the environment. As a side effect, all PasteDeploy application-specific config file settings are made available as attributes of the ``ISettings`` utility from within BFG. --- repoze/bfg/tests/test_registry.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'repoze/bfg/tests') diff --git a/repoze/bfg/tests/test_registry.py b/repoze/bfg/tests/test_registry.py index f10fe6a52..9bf09399f 100644 --- a/repoze/bfg/tests/test_registry.py +++ b/repoze/bfg/tests/test_registry.py @@ -133,6 +133,11 @@ class TestGetOptions(unittest.TestCase): {'BFG_UNICODE_PATH_SEGMENTS':'1'}) self.assertEqual(result['unicode_path_segments'], True) + def test_originals_kept(self): + get_options = self._getFUT() + result = get_options({'a':'i am so a'}) + self.assertEqual(result['a'], 'i am so a') + class TestSettings(unittest.TestCase): def _getTargetClass(self): from repoze.bfg.registry import Settings -- cgit v1.2.3