diff --git a/tests/test_config.py b/tests/test_config.py index f709ae1e425a2b260447397a0db358111fbec27d..bb4625a2947d7cfbc41ab2655692359ebb0d5e43 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -354,6 +354,11 @@ def test_no_books_path(): config = config_mod.Config() assert config.books_path() is None +def test_books_path_expands_user(): + config = config_mod.Config() + config.load_string('[Beancount]\nbooks dir = ~/userbooks\n') + assert config.books_path() == (Path.home() / 'userbooks') + @pytest.mark.parametrize('value,month,day', [ ('2', 2, 1), ('3 ', 3, 1),