diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-01-06 23:28:18 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-01-06 23:28:18 +0000 |
| commit | 09b96402ddc9f6a64b6d71d3be3b2d32c32e59df (patch) | |
| tree | 0f8bcd8919d370831db83c6c0f9057e9a7b34967 /repoze/bfg/tests | |
| parent | 9a385906465baa34ec5e63e3b8b0ab86e2f85f98 (diff) | |
| download | pyramid-09b96402ddc9f6a64b6d71d3be3b2d32c32e59df.tar.gz pyramid-09b96402ddc9f6a64b6d71d3be3b2d32c32e59df.tar.bz2 pyramid-09b96402ddc9f6a64b6d71d3be3b2d32c32e59df.zip | |
- 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.
Diffstat (limited to 'repoze/bfg/tests')
| -rw-r--r-- | repoze/bfg/tests/test_registry.py | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
