diff --git a/tests/test_meta_project.py b/tests/test_meta_project.py index 5149e356d4634bb31118c0e14ad93861cc9e6334..8c84fcfe9122c07c0bef505e2c08f95a98802c06 100644 --- a/tests/test_meta_project.py +++ b/tests/test_meta_project.py @@ -158,11 +158,11 @@ def test_invalid_project_data(repo_path_s, data_path_s): meta_project.MetaProject(config, Path(data_path_s)) def test_not_required_on_opening(hook): - txn = testutil.Transaction.opening_balance('Equity:Funds:Unrestricted') + txn = testutil.OpeningBalance('Equity:Funds:Unrestricted') assert not list(hook.run(txn)) def test_always_required_on_restricted_funds(hook): acct = 'Equity:Funds:Restricted' - txn = testutil.Transaction.opening_balance(acct) + txn = testutil.OpeningBalance(acct) actual = {error.message for error in hook.run(txn)} assert actual == {f'{acct} missing project'}