@@ -164,8 +164,8 @@ def test_which_accounts_required_on(hook, account, required):
else:
assert errors
assert any(error.message == "{} missing entity".format(account)
for error in errors)
def test_not_required_on_opening(hook):
txn = testutil.Transaction.opening_balance()
txn = testutil.OpeningBalance()
assert not list(hook.run(txn))