@@ -165,3 +165,7 @@ def test_which_accounts_required_on(hook, account, required):
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()
assert not list(hook.run(txn))