diff --git a/tests/testutil.py b/tests/testutil.py index 110369be208696a7a1ee547fc9f8c7625084124d..33f21506e5f54d46d98c5057427bb99325de3132 100644 --- a/tests/testutil.py +++ b/tests/testutil.py @@ -237,6 +237,7 @@ class TestBooksLoader(books.Loader): class TestConfig: def __init__(self, *, books_path=None, + fiscal_year=(3, 1), payment_threshold=0, repo_path=None, rt_client=None, @@ -245,6 +246,7 @@ class TestConfig: self._books_loader = None else: self._books_loader = TestBooksLoader(books_path) + self.fiscal_year = fiscal_year self._payment_threshold = Decimal(payment_threshold) self.repo_path = test_path(repo_path) self._rt_client = rt_client @@ -259,6 +261,9 @@ class TestConfig: def config_file_path(self): return test_path('userconfig/conservancy_beancount/config.ini') + def fiscal_year_begin(self): + return books.FiscalYear(*self.fiscal_year) + def payment_threshold(self): return self._payment_threshold