summaryrefslogtreecommitdiff
path: root/cliapp/settings_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-08-02 16:17:34 +0100
committerLars Wirzenius <liw@liw.fi>2011-08-02 16:17:34 +0100
commita0ec6855b9a7b6d4657add79724d07cec7edbbfc (patch)
tree4c3bf308b19c72f8ebcd767c37cc74b601c10b76 /cliapp/settings_tests.py
parent4c151a7e1393c9d129d4ed583088e89154984fb6 (diff)
downloadcliapp-a0ec6855b9a7b6d4657add79724d07cec7edbbfc.tar.gz
Add --no-default-configs.
Diffstat (limited to 'cliapp/settings_tests.py')
-rw-r--r--cliapp/settings_tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/cliapp/settings_tests.py b/cliapp/settings_tests.py
index 4eb2f51..6f62e38 100644
--- a/cliapp/settings_tests.py
+++ b/cliapp/settings_tests.py
@@ -296,6 +296,10 @@ bar = ping, pong
self.assertEqual(self.settings.config_files,
self.settings._default_config_files + ['foo.conf'])
+ def test_ignores_default_configs(self):
+ self.settings.parse_args(['--no-default-configs'])
+ self.assertEqual(self.settings.config_files, [])
+
def test_require_raises_error_if_string_unset(self):
self.settings.string(['foo'], 'foo help', default=None)
self.assertRaises(cliapp.AppException, self.settings.require,