diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-12-19 21:48:36 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-12-19 21:48:36 +0000 |
| commit | 0adc2fe61c2e225dfa1bcf9a3d814ba394e95ce7 (patch) | |
| tree | 1d9b9e98d16c9c0079d41f95d6499bedeee9a4ab /repoze/bfg/testing.py | |
| parent | 4ffea305a052d4e3acf023c33a8dd471045f2c97 (diff) | |
| download | pyramid-0adc2fe61c2e225dfa1bcf9a3d814ba394e95ce7.tar.gz pyramid-0adc2fe61c2e225dfa1bcf9a3d814ba394e95ce7.tar.bz2 pyramid-0adc2fe61c2e225dfa1bcf9a3d814ba394e95ce7.zip | |
- Add a new API to the ``repoze.bfg.configuration.Configurator``
class: ``add_settings``. This API can be used to add "settings"
(information returned within via the
``repoze.bfg.settings.get_settings`` API) after the configurator has
been initially set up. This is most useful for testing purposes.
Diffstat (limited to 'repoze/bfg/testing.py')
| -rw-r--r-- | repoze/bfg/testing.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/repoze/bfg/testing.py b/repoze/bfg/testing.py index 2b9a7a904..5d0a756e7 100644 --- a/repoze/bfg/testing.py +++ b/repoze/bfg/testing.py @@ -320,6 +320,10 @@ def registerSettings(dictarg=None, **kw): return values from it. .. note:: This API is new as of :mod:`repoze.bfg` 1.1. + + .. warning:: This API is deprecated as of :mod:`repoze.bfg` 1.2. + Instead use the ``add_settings`` method of a + :term:`Configurator` in your unit and integration tests. """ reg = get_current_registry() settings = reg.queryUtility(ISettings) |
