diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2018-06-19 22:21:56 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2018-06-21 21:34:19 +0100 |
commit | d7eba03baaafde7ed26fb58b66637bd6f981a3c0 (patch) | |
tree | 4dd25019ff207eb6f30f16129ce4ff2d7c194bd6 /tests/commands | |
parent | 6bb014f251b0a3b5c6d0b3aa972c588d771d6867 (diff) |
update tests for SettingsManager
- SettingsManagers is now instantiated without config paths
and instead `read_[notmuch]config` is called separately
- test_no_user_setting_* are removed, because we do not need to test
what config path SettingsManager uses anymore (this is now explicit)
Diffstat (limited to 'tests/commands')
-rw-r--r-- | tests/commands/envelope_test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/commands/envelope_test.py b/tests/commands/envelope_test.py index e46b33a1..aea84327 100644 --- a/tests/commands/envelope_test.py +++ b/tests/commands/envelope_test.py @@ -319,7 +319,8 @@ class TestSignCommand(unittest.TestCase): self.addCleanup(os.unlink, f.name) # Set the gpg_key separately to avoid validation failures - manager = SettingsManager(alot_rc=f.name) + manager = SettingsManager() + manager.read_config(f.name) manager.get_accounts()[0].gpg_key = mock.sentinel.gpg_key return manager |