diff --git a/tests/test_meta_paypal_id.py b/tests/test_meta_paypal_id.py index c70d99ae50528a589a64ef9d0057209b0c7a0a17..49d736ee0f47521f98afd521f3a612760187e618 100644 --- a/tests/test_meta_paypal_id.py +++ b/tests/test_meta_paypal_id.py @@ -187,3 +187,10 @@ def test_invoice_payment_transaction_ok(hook, txn_id, inv_id): ('Expenses:BankingFees', 3), ]) assert not list(hook.run(txn)) + +def test_not_required_on_opening(hook): + txn = testutil.Transaction(postings=[ + ('Assets:PayPal', 1000), + (next(testutil.OPENING_EQUITY_ACCOUNTS), -1000), + ]) + assert not list(hook.run(txn))