-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand test coverage for message format of find_recurrent_transfer
- Loading branch information
Showing
3 changed files
with
25 additions
and
13 deletions.
There are no files selected for viewing
7 changes: 5 additions & 2 deletions
7
...ython/api_tests/message_format_tests/condenser_api_tests/test_find_recurrent_transfers.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
from __future__ import annotations | ||
|
||
import pytest | ||
|
||
import test_tools as tt | ||
from hive_local_tools import run_for | ||
|
||
|
||
@run_for("testnet", "mainnet_5m", "live_mainnet") | ||
def test_find_recurrent_transfers(node: tt.InitNode | tt.RemoteNode, should_prepare: bool) -> None: | ||
@pytest.mark.parametrize("asset", [tt.Asset.Test(10), tt.Asset.Tbd(10)]) | ||
def test_find_recurrent_transfers(node: tt.InitNode | tt.RemoteNode, should_prepare: bool, asset: tt.Asset) -> None: | ||
if should_prepare: | ||
wallet = tt.Wallet(attach_to=node) | ||
wallet.api.create_account("initminer", "alice", "{}") | ||
wallet.api.recurrent_transfer("initminer", "alice", tt.Asset.Test(10), "{}", 720, 12) | ||
wallet.api.recurrent_transfer("initminer", "alice", asset, "{}", 720, 12) | ||
node.api.condenser.find_recurrent_transfers("initminer") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters