summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorianb <devnull@localhost>2007-05-25 02:55:48 +0000
committerianb <devnull@localhost>2007-05-25 02:55:48 +0000
commit8b75797526e879d0947098850cba8614b6f17f04 (patch)
tree48ff833c9be0cabbcd609b483ae42cf5c25c1d4a /tests
parentaffa95cfbf1991b603ccae11652aa792081af1b0 (diff)
downloadpastedeploy-8b75797526e879d0947098850cba8614b6f17f04.tar.gz
Fix appconfig and filter-with
Diffstat (limited to 'tests')
-rw-r--r--tests/sample_configs/test_filter_with.ini1
-rw-r--r--tests/test_config.py4
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/sample_configs/test_filter_with.ini b/tests/sample_configs/test_filter_with.ini
index ec6592b..118804f 100644
--- a/tests/sample_configs/test_filter_with.ini
+++ b/tests/sample_configs/test_filter_with.ini
@@ -1,5 +1,6 @@
[app:main]
use = egg:FakeApp#basic_app
+example = test
filter-with = filter1
[filter:filter1]
diff --git a/tests/test_config.py b/tests/test_config.py
index cf19cf5..6fffe82 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -94,6 +94,10 @@ def test_appconfig():
'here': config_path,
'__file__': config_filename,}
+def test_appconfig_filter_with():
+ conf = appconfig('config:test_filter_with.ini', relative_to=config_path)
+ assert conf['example'] == 'test'
+
def test_global_conf():
conf = appconfig(ini_file, relative_to=here, name='test_global_conf', global_conf={'def2': 'TEST DEF 2', 'inherit': 'bazbar'})
pprint(conf)