File tree Expand file tree Collapse file tree 14 files changed +41
-26
lines changed Expand file tree Collapse file tree 14 files changed +41
-26
lines changed Original file line number Diff line number Diff line change @@ -717,6 +717,21 @@ fn wallet__list_wallet_dir() {
717
717
assert ! ( wallet_names. iter( ) . any( |w| * w == wallet_name) ) ;
718
718
}
719
719
720
+ #[ test]
721
+ fn wallet__list_wallets__modelled ( ) {
722
+ let node = Node :: with_wallet ( Wallet :: None , & [ ] ) ;
723
+
724
+ let wallet_1 = "test_wallet_1" ;
725
+ let wallet_2 = "test_wallet_2" ;
726
+ node. client . create_wallet ( wallet_1) . expect ( "createwallet w1" ) ;
727
+ node. client . create_wallet ( wallet_2) . expect ( "createwallet w2" ) ;
728
+
729
+ let json: ListWallets = node. client . list_wallets ( ) . expect ( "listwallets" ) ;
730
+
731
+ assert ! ( json. 0 . iter( ) . any( |w| w == wallet_1) ) ;
732
+ assert ! ( json. 0 . iter( ) . any( |w| w == wallet_2) ) ;
733
+ }
734
+
720
735
#[ test]
721
736
fn wallet__load_wallet__modelled ( ) {
722
737
create_load_unload_wallet ( ) ;
Original file line number Diff line number Diff line change 170
170
//! | getreceivedbyaccount | returns nothing | |
171
171
//! | getreceivedbyaddress | version + model | |
172
172
//! | gettransaction | version + model | |
173
- //! | getunconfirmedbalance | version + model | UNTESTED |
173
+ //! | getunconfirmedbalance | version + model | |
174
174
//! | getwalletinfo | version + model | UNTESTED |
175
175
//! | importaddress | returns nothing | |
176
176
//! | importmulti | version | |
188
188
//! | listsinceblock | version + model | UNTESTED |
189
189
//! | listtransactions | version + model | UNTESTED |
190
190
//! | listunspent | version + model | |
191
- //! | listwallets | version + model | UNTESTED |
191
+ //! | listwallets | version + model | |
192
192
//! | loadwallet | version + model | |
193
193
//! | lockunspent | version | |
194
194
//! | move | returns boolean | |
Original file line number Diff line number Diff line change 174
174
//! | getreceivedbyaddress | version + model | |
175
175
//! | getreceivedbylabel | version + model | |
176
176
//! | gettransaction | version + model | |
177
- //! | getunconfirmedbalance | version + model | UNTESTED |
177
+ //! | getunconfirmedbalance | version + model | |
178
178
//! | getwalletinfo | version + model | UNTESTED |
179
179
//! | importaddress | returns nothing | |
180
180
//! | importmulti | version | |
192
192
//! | listtransactions | version + model | UNTESTED |
193
193
//! | listunspent | version + model | |
194
194
//! | listwalletdir | version | |
195
- //! | listwallets | version + model | UNTESTED |
195
+ //! | listwallets | version + model | |
196
196
//! | loadwallet | version + model | |
197
197
//! | lockunspent | version | |
198
198
//! | removeprunedfunds | returns nothing | |
Original file line number Diff line number Diff line change 175
175
//! | getreceivedbyaddress | version + model | |
176
176
//! | getreceivedbylabel | version + model | |
177
177
//! | gettransaction | version + model | |
178
- //! | getunconfirmedbalance | version + model | UNTESTED |
178
+ //! | getunconfirmedbalance | version + model | |
179
179
//! | getwalletinfo | version + model | UNTESTED |
180
180
//! | importaddress | returns nothing | |
181
181
//! | importmulti | version | |
193
193
//! | listtransactions | version + model | UNTESTED |
194
194
//! | listunspent | version + model | |
195
195
//! | listwalletdir | version | |
196
- //! | listwallets | version + model | UNTESTED |
196
+ //! | listwallets | version + model | |
197
197
//! | loadwallet | version + model | |
198
198
//! | lockunspent | version | |
199
199
//! | removeprunedfunds | returns nothing | |
Original file line number Diff line number Diff line change 176
176
//! | getreceivedbyaddress | version + model | |
177
177
//! | getreceivedbylabel | version + model | |
178
178
//! | gettransaction | version + model | |
179
- //! | getunconfirmedbalance | version + model | UNTESTED |
179
+ //! | getunconfirmedbalance | version + model | |
180
180
//! | getwalletinfo | version + model | UNTESTED |
181
181
//! | importaddress | returns nothing | |
182
182
//! | importmulti | version | |
194
194
//! | listtransactions | version + model | UNTESTED |
195
195
//! | listunspent | version + model | |
196
196
//! | listwalletdir | version | |
197
- //! | listwallets | version + model | UNTESTED |
197
+ //! | listwallets | version + model | |
198
198
//! | loadwallet | version + model | |
199
199
//! | lockunspent | version | |
200
200
//! | removeprunedfunds | returns nothing | |
Original file line number Diff line number Diff line change 178
178
//! | getreceivedbyaddress | version + model | |
179
179
//! | getreceivedbylabel | version + model | |
180
180
//! | gettransaction | version + model | |
181
- //! | getunconfirmedbalance | version + model | UNTESTED |
181
+ //! | getunconfirmedbalance | version + model | |
182
182
//! | getwalletinfo | version + model | UNTESTED |
183
183
//! | importaddress | returns nothing | |
184
184
//! | importdescriptors | version | |
198
198
//! | listtransactions | version + model | UNTESTED |
199
199
//! | listunspent | version + model | |
200
200
//! | listwalletdir | version | |
201
- //! | listwallets | version + model | UNTESTED |
201
+ //! | listwallets | version + model | |
202
202
//! | loadwallet | version + model | |
203
203
//! | lockunspent | version | |
204
204
//! | removeprunedfunds | returns nothing | |
Original file line number Diff line number Diff line change 187
187
//! | getreceivedbyaddress | version + model | |
188
188
//! | getreceivedbylabel | version + model | |
189
189
//! | gettransaction | version + model | |
190
- //! | getunconfirmedbalance | version + model | UNTESTED |
190
+ //! | getunconfirmedbalance | version + model | |
191
191
//! | getwalletinfo | version + model | UNTESTED |
192
192
//! | importaddress | returns nothing | |
193
193
//! | importdescriptors | version | |
208
208
//! | listtransactions | version + model | UNTESTED |
209
209
//! | listunspent | version + model | |
210
210
//! | listwalletdir | version | |
211
- //! | listwallets | version + model | UNTESTED |
211
+ //! | listwallets | version + model | |
212
212
//! | loadwallet | version + model | |
213
213
//! | lockunspent | version | |
214
214
//! | removeprunedfunds | returns nothing | |
Original file line number Diff line number Diff line change 178
178
//! | getreceivedbyaddress | version + model | |
179
179
//! | getreceivedbylabel | version + model | |
180
180
//! | gettransaction | version + model | |
181
- //! | getunconfirmedbalance | version + model | UNTESTED |
181
+ //! | getunconfirmedbalance | version + model | |
182
182
//! | getwalletinfo | version + model | UNTESTED |
183
183
//! | importaddress | returns nothing | |
184
184
//! | importdescriptors | version | |
200
200
//! | listtransactions | version + model | UNTESTED |
201
201
//! | listunspent | version + model | |
202
202
//! | listwalletdir | version | |
203
- //! | listwallets | version + model | UNTESTED |
203
+ //! | listwallets | version + model | |
204
204
//! | loadwallet | version + model | |
205
205
//! | lockunspent | version | |
206
206
//! | removeprunedfunds | returns nothing | |
Original file line number Diff line number Diff line change 179
179
//! | getreceivedbyaddress | version + model | |
180
180
//! | getreceivedbylabel | version + model | |
181
181
//! | gettransaction | version + model | |
182
- //! | getunconfirmedbalance | version + model | UNTESTED |
182
+ //! | getunconfirmedbalance | version + model | |
183
183
//! | getwalletinfo | version + model | UNTESTED |
184
184
//! | importaddress | returns nothing | |
185
185
//! | importdescriptors | version | |
202
202
//! | listtransactions | version + model | UNTESTED |
203
203
//! | listunspent | version + model | |
204
204
//! | listwalletdir | version | |
205
- //! | listwallets | version + model | UNTESTED |
205
+ //! | listwallets | version + model | |
206
206
//! | loadwallet | version + model | |
207
207
//! | lockunspent | version | |
208
208
//! | removeprunedfunds | returns nothing | |
Original file line number Diff line number Diff line change 180
180
//! | getreceivedbyaddress | version + model | |
181
181
//! | getreceivedbylabel | version + model | |
182
182
//! | gettransaction | version + model | |
183
- //! | getunconfirmedbalance | version + model | UNTESTED |
183
+ //! | getunconfirmedbalance | version + model | |
184
184
//! | getwalletinfo | version + model | UNTESTED |
185
185
//! | importaddress | returns nothing | |
186
186
//! | importdescriptors | version | |
203
203
//! | listtransactions | version + model | UNTESTED |
204
204
//! | listunspent | version + model | |
205
205
//! | listwalletdir | version | |
206
- //! | listwallets | version + model | UNTESTED |
206
+ //! | listwallets | version + model | |
207
207
//! | loadwallet | version + model | |
208
208
//! | lockunspent | version | |
209
209
//! | removeprunedfunds | returns nothing | |
You can’t perform that action at this time.
0 commit comments