From 0adc2fe61c2e225dfa1bcf9a3d814ba394e95ce7 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 19 Dec 2009 21:48:36 +0000 Subject: - 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. --- repoze/bfg/testing.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'repoze/bfg/testing.py') 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) -- cgit v1.2.3