summaryrefslogtreecommitdiff
path: root/tests/settings
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2017-08-16 11:07:52 -0700
committerDylan Baker <dylan@pnwbakers.com>2017-08-16 11:24:33 -0700
commit6d20c4ae8f1130bd29b14ea52014b394e0a1c4a4 (patch)
treea10dea292e9834e00368e134cd0ce85ef2c8e8d3 /tests/settings
parent8ceb87c911fbfa010e4a9bf1ad098f4b632724d1 (diff)
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
Diffstat (limited to 'tests/settings')
-rw-r--r--tests/settings/manager_test.py2
1 files changed, 0 insertions, 2 deletions
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("""\