From 6d20c4ae8f1130bd29b14ea52014b394e0a1c4a4 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 16 Aug 2017 11:07:52 -0700 Subject: settings: Load spec file even if config file is undefined. This is necessary even if the config file is None to ensure that the spec file is loaded Also mock out the setting.const module in the docs, otherwise they'll fail to generate. Fixes #1094 --- tests/settings/manager_test.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'tests/settings') diff --git a/tests/settings/manager_test.py b/tests/settings/manager_test.py index 04f35504..81604882 100644 --- a/tests/settings/manager_test.py +++ b/tests/settings/manager_test.py @@ -63,7 +63,6 @@ class TestSettingsManager(unittest.TestCase): actual = manager.get_notmuch_setting('maildir', 'synchronize_flags') self.assertTrue(actual) - @unittest.expectedFailure def test_read_config_doesnt_exist(self): """If there is not an alot config things don't break. @@ -81,7 +80,6 @@ class TestSettingsManager(unittest.TestCase): manager.get_theming_attribute('global', 'body') - @unittest.expectedFailure def test_read_notmuch_config_doesnt_exist(self): with tempfile.NamedTemporaryFile(delete=False) as f: f.write(textwrap.dedent("""\ -- cgit v1.2.3