Skip to content

Commit

Permalink
Resolves Issue datafolklabs#107
Browse files Browse the repository at this point in the history
  • Loading branch information
BJ Dierkes committed May 3, 2012
1 parent 0528afe commit 32228e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions doc/source/dev/configuration.rst
Expand Up @@ -69,10 +69,9 @@ so:
from cement2.core import foundation, backend
defaults = dict()
defaults['myapp'] = dict()
defaults['myapp']['debug'] = True
defaults['myapp']['foo'] = 'bar'
defaults = backend.defaults('section1','section2')
defaults['section1']['foo'] = 'bar'
defaults['section2']['foo2'] = 'bar2'
app = foundation.CementApp('myapp', config_defaults=defaults)
Expand Down
1 change: 1 addition & 0 deletions src/cement2/tests/core/backend_tests.py
Expand Up @@ -12,6 +12,7 @@ def setUp(self):
def test_defaults(self):
defaults = backend.defaults('myapp', 'section2', 'section3')
defaults['myapp']['debug'] = True
defaults['section2']['foo'] = 'bar'
self.app = _t.prep('myapp', config_defaults=defaults)
self.app.setup()
eq_(self.app.config.get('myapp', 'debug'), True)
Expand Down

0 comments on commit 32228e1

Please sign in to comment.