File diff 1e09339b32f6 → aa488effb0f5
tests/test_config.py
Show inline comments
...
 
@@ -398,7 +398,9 @@ def test_books_loader():
 
    config = config_mod.Config()
 
    config.load_string(f'[Beancount]\nbooks dir = {books_path}\n')
 
    loader = config.books_loader()
 
    assert loader.fy_range_string(2020, 2020)
 
    entries, errors, _ = loader.load_fy_range(2020, 2020)
 
    assert entries
 
    assert not errors
 

	
 
def test_books_loader_without_books():
 
    assert config_mod.Config().books_loader() is None