diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-08-02 16:18:14 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-08-02 16:18:14 +0100 |
commit | aa3d5fb130d5bf493969786c5784359593ad0d70 (patch) | |
tree | 6b227b675fc8492d7c585fe0d96ad80c82901448 /cliapp/settings_tests.py | |
parent | a0ec6855b9a7b6d4657add79724d07cec7edbbfc (diff) | |
download | cliapp-aa3d5fb130d5bf493969786c5784359593ad0d70.tar.gz |
Add test for --no-default-configs --config=foo.
Diffstat (limited to 'cliapp/settings_tests.py')
-rw-r--r-- | cliapp/settings_tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cliapp/settings_tests.py b/cliapp/settings_tests.py index 6f62e38..b0e87fe 100644 --- a/cliapp/settings_tests.py +++ b/cliapp/settings_tests.py @@ -300,6 +300,10 @@ bar = ping, pong self.settings.parse_args(['--no-default-configs']) self.assertEqual(self.settings.config_files, []) + def test_ignores_then_adds_configs_works(self): + self.settings.parse_args(['--no-default-configs', '--config=foo.conf']) + self.assertEqual(self.settings.config_files, ['foo.conf']) + def test_require_raises_error_if_string_unset(self): self.settings.string(['foo'], 'foo help', default=None) self.assertRaises(cliapp.AppException, self.settings.require, |