Coverage for tests/utils/__init__.py: 100%

49 statements  

« prev     ^ index     » next       coverage.py v7.17.3, created at 2026-11-22 19:49 +0000

1r"""Collection of test utilities for monero-python library. 

2 

3### Example: 

4 

5```python 

6from utils import TestUtils 

7 

8TestUtils.get_wallet_full() 

9``` 

10""" 

11 

12from .gen_utils import GenUtils 

13from .assert_utils import AssertUtils 

14from .test_utils import TestUtils 

15from .mining_utils import MiningUtils 

16from .wallet_sync_printer import WalletSyncPrinter 

17from .address_book import AddressBook 

18from .keys_book import KeysBook 

19from .context import SerializableContext, TestContext, BinaryBlockContext, TxContext 

20from .string_utils import StringUtils 

21from .wallet_equality_utils import WalletEqualityUtils 

22from .wallet_tx_tracker import WalletTxTracker 

23from .output_utils import OutputUtils 

24from .tx_utils import TxUtils 

25from .tx_wallet_utils import TxWalletUtils 

26from .transfer_utils import TransferUtils 

27from .block_utils import BlockUtils 

28from .daemon_utils import DaemonUtils 

29from .wallet_utils import WalletUtils 

30from .single_tx_sender import SingleTxSender 

31from .to_multiple_tx_sender import ToMultipleTxSender 

32from .from_multiple_tx_sender import FromMultipleTxSender 

33from .tx_spammer import TxSpammer 

34from .blockchain_utils import BlockchainUtils 

35from .integration_test_utils import IntegrationTestUtils 

36from .wallet_type import WalletType 

37from .view_only_and_offline_wallet_tester import ViewOnlyAndOfflineWalletTester 

38from .daemon_notification_collector import DaemonNotificationCollector 

39from .fake_daemon_rpc_server import FakeDaemonRpcServer 

40from .fake_wallet_rpc_server import FakeWalletRpcServer 

41from .wallet_notification_collector import WalletNotificationCollector 

42from .wallet_notifications_tester import WalletNotificationsTester 

43from .submit_then_relay_tx_tester import SubmitThenRelayTxTester 

44from .multisig_sample_code_tester import MultisigSampleCodeTester 

45from .wallet_sync_tester import WalletSyncTester 

46from .sync_progress_tester import SyncProgressTester 

47from .sync_seed_tester import SyncSeedTester 

48from .send_and_update_txs_tester import SendAndUpdateTxsTester 

49from .sync_with_pool_submit_tester import SyncWithPoolSubmitTester 

50from .txs_structure_tester import TxsStructureTester 

51from .docker_wallet_rpc_manager import DockerWalletRpcManager 

52from .rpc_connection_utils import RpcConnectionUtils 

53from .base_test_class import BaseTestClass 

54from .wallet_transfers_utils import WalletTransfersUtils 

55from .wallet_txs_utils import WalletTxsUtils 

56from .wallet_send_utils import WalletSendUtils 

57from .wallet_test_utils import WalletTestUtils 

58from .wallet_error_utils import WalletErrorUtils 

59from .wallet_calls import WalletCall, WALLET_CALLS, NOT_SUPPORTED_HINTS 

60 

61__all__ = [ 

62 'WalletUtils', 

63 'WalletTransfersUtils', 

64 'WalletTxsUtils', 

65 'DaemonUtils', 

66 'GenUtils', 

67 'AssertUtils', 

68 'TestUtils', 

69 'MiningUtils', 

70 'WalletSyncPrinter', 

71 'AddressBook', 

72 'KeysBook', 

73 'SerializableContext', 

74 'TestContext', 

75 'TxContext', 

76 'BinaryBlockContext', 

77 'StringUtils', 

78 'WalletEqualityUtils', 

79 'WalletTxTracker', 

80 'OutputUtils', 

81 'TxUtils', 

82 'TxWalletUtils', 

83 'TransferUtils', 

84 'BlockUtils', 

85 'SingleTxSender', 

86 'ToMultipleTxSender', 

87 'FromMultipleTxSender', 

88 'TxSpammer', 

89 'BlockchainUtils', 

90 'IntegrationTestUtils', 

91 'WalletType', 

92 'ViewOnlyAndOfflineWalletTester', 

93 'WalletNotificationCollector', 

94 'WalletNotificationsTester', 

95 'SubmitThenRelayTxTester', 

96 'MultisigSampleCodeTester', 

97 'WalletSyncTester', 

98 'SyncProgressTester', 

99 'SyncSeedTester', 

100 'SendAndUpdateTxsTester', 

101 'SyncWithPoolSubmitTester', 

102 'DockerWalletRpcManager', 

103 'RpcConnectionUtils', 

104 'BaseTestClass', 

105 'WalletErrorUtils', 

106 'WalletCall', 

107 'WALLET_CALLS', 

108 'NOT_SUPPORTED_HINTS', 

109 'WalletSendUtils', 

110 'WalletTestUtils', 

111 'TxsStructureTester', 

112 'DaemonNotificationCollector', 

113 'FakeDaemonRpcServer', 

114 'FakeWalletRpcServer' 

115]