@@ -8,8 +8,8 @@ def test_help(runner, cli):
88 assert result .exit_code == 0 , result .output
99
1010
11- def test_propose (runner , cli , one_safe , receiver , chain ):
12- nonce_at_start = one_safe .next_nonce
11+ def test_propose (runner , cli , safe_account , receiver , chain ):
12+ nonce_at_start = safe_account .next_nonce
1313 cmd = (
1414 "pending" ,
1515 "propose" ,
@@ -23,25 +23,25 @@ def test_propose(runner, cli, one_safe, receiver, chain):
2323
2424 # Sender is required by the API even for initial proposal,
2525 # so it prompts the user.
26- sender_input = f"{ one_safe .alias } \n "
26+ sender_input = f"{ safe_account .alias } \n "
2727
2828 result = runner .invoke (cli , cmd , catch_exceptions = False , input = sender_input )
2929 assert result .exit_code == 0
3030 assert "Proposed transaction" in result .output
3131 safe_tx_hash = result .output .split ("Proposed transaction '" )[- 1 ].split ("'" )[0 ].strip ()
3232
3333 # Verify the transaction is in the service.
34- assert safe_tx_hash in one_safe .client .transactions
34+ assert safe_tx_hash in safe_account .client .transactions
3535
3636 # The nonce is the same because we did not execute.
37- assert one_safe .next_nonce == nonce_at_start
37+ assert safe_account .next_nonce == nonce_at_start
3838
3939
40- def test_propose_with_sender (runner , cli , one_safe , receiver , chain , foundry ):
40+ def test_propose_with_sender (runner , cli , safe_account , receiver , chain , foundry ):
4141 # First, fund the safe so the tx does not fail.
42- receiver .transfer (one_safe , "1 ETH" )
42+ receiver .transfer (safe_account , "1 ETH" )
4343
44- nonce_at_start = one_safe .next_nonce
44+ nonce_at_start = safe_account .next_nonce
4545 cmd = (
4646 "pending" ,
4747 "propose" ,
@@ -58,14 +58,14 @@ def test_propose_with_sender(runner, cli, one_safe, receiver, chain, foundry):
5858 assert result .exit_code == 0 , result .output
5959
6060 # The nonce is the same because we did not execute.
61- assert one_safe .next_nonce == nonce_at_start
61+ assert safe_account .next_nonce == nonce_at_start
6262
6363
64- def test_propose_with_execute (runner , cli , one_safe , receiver , chain ):
64+ def test_propose_with_execute (runner , cli , safe_account , receiver , chain ):
6565 # First, fund the safe so the tx does not fail.
66- receiver .transfer (one_safe , "1 ETH" )
66+ receiver .transfer (safe_account , "1 ETH" )
6767
68- nonce_at_start = one_safe .next_nonce
68+ nonce_at_start = safe_account .next_nonce
6969 cmd = (
7070 "pending" ,
7171 "propose" ,
@@ -81,24 +81,24 @@ def test_propose_with_execute(runner, cli, one_safe, receiver, chain):
8181 )
8282 result = runner .invoke (cli , cmd , catch_exceptions = False )
8383 assert result .exit_code == 0 , result .output
84- assert one_safe .next_nonce == nonce_at_start + 1
84+ assert safe_account .next_nonce == nonce_at_start + 1
8585
8686
87- def test_list_no_safes (runner , cli , no_safes , chain ):
87+ def test_list_no_safes (runner , cli , chain ):
8888 result = runner .invoke (cli , ["pending" , "list" , "--network" , chain .provider .network_choice ])
8989 assert result .exit_code != 0 , result .output
9090 assert "First, add a safe account using command" in result .output
9191 assert "ape safe add" in result .output
9292
9393
94- def test_list_no_txns (runner , cli , one_safe , chain ):
94+ def test_list_no_txns (runner , cli , safe_account , chain ):
9595 arguments = ("pending" , "list" , "--network" , chain .provider .network_choice )
9696 result = runner .invoke (cli , arguments , catch_exceptions = False )
9797 assert result .exit_code == 0 , result .output
9898 assert "There are no pending transactions" in result .output
9999
100100
101- def test_approve_transaction_not_found (runner , cli , one_safe , chain ):
101+ def test_approve_transaction_not_found (runner , cli , safe_account , chain ):
102102 tx_hash = "0x123"
103103 arguments = ("pending" , "approve" , tx_hash , "--network" , chain .provider .network_choice )
104104 result = runner .invoke (
@@ -110,14 +110,14 @@ def test_approve_transaction_not_found(runner, cli, one_safe, chain):
110110 assert f"Pending transaction(s) '{ tx_hash } ' not found." in result .output
111111
112112
113- def test_approve (receiver , runner , cli , one_safe , chain ):
113+ def test_approve (receiver , runner , cli , safe_account , chain ):
114114 # First, fund the safe so the tx does not fail.
115- receiver .transfer (one_safe , "1 ETH" )
115+ receiver .transfer (safe_account , "1 ETH" )
116116 tx_hash = "0x123"
117117 nonce = 1
118118
119- one_safe .client .transactions_by_nonce [nonce ] = tx_hash
120- one_safe .client .transactions [tx_hash ] = ExecutedTxData (
119+ safe_account .client .transactions_by_nonce [nonce ] = tx_hash
120+ safe_account .client .transactions [tx_hash ] = ExecutedTxData (
121121 executionDate = datetime .now (),
122122 blockNumber = 0 ,
123123 transactionHash = tx_hash ,
@@ -144,7 +144,7 @@ def test_approve(receiver, runner, cli, one_safe, chain):
144144 operation = 0 ,
145145 value = 0 ,
146146 to = receiver .address ,
147- safe = one_safe .address ,
147+ safe = safe_account .address ,
148148 )
149149
150150 arguments = ("pending" , "approve" , tx_hash , "--network" , chain .provider .network_choice )
0 commit comments