Beispiel #1
0
 def test_config_pathname_env(self, monkeypatch):
     monkeypatch.setenv('NOTMUCH_CONFIG', '/some/random/path')
     assert dbmod._config_pathname() == pathlib.Path('/some/random/path')
Beispiel #2
0
 def test_config_pathname_default(self, monkeypatch):
     monkeypatch.delenv('NOTMUCH_CONFIG', raising=False)
     user = pathlib.Path('~/.notmuch-config').expanduser()
     assert dbmod._config_pathname() == user