Skip to content

Commit 91cdf7d

Browse files
committed
test: Include source_accounts in test
1 parent 2a9cb91 commit 91cdf7d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tests/test_deeplink.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from datetime import datetime, timedelta
55

66
from setu import Deeplink, SetuAPIException
7-
from setu.contract import Account, RefundRequestItem, SettlementSplits, SplitAccount
7+
from setu.contract import Account, RefundRequestItem, SettlementSplits, SplitAccount, ValidationRules
88

99
LOGGER = logging.getLogger(__name__)
1010

@@ -42,6 +42,11 @@ def test_deeplink(v2_creds):
4242
account_ifsc="KKBK0000001",
4343
),
4444
),
45+
validation_rules=ValidationRules(
46+
source_accounts=[
47+
Account(account_number="987654321", account_ifsc="KKBK0000001"),
48+
]
49+
),
4550
additional_info={"sample_key": "sample_value"},
4651
)
4752
LOGGER.info(link)

0 commit comments

Comments
 (0)