mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
pytest: remove only_one() duplicate
The function is already provided in contrib/pyln-testing/pyln/testing/utils.py (which is also imported in this module), so there is no need to define it a second time.
This commit is contained in:
parent
48473eb3e9
commit
c970195b93
@ -520,10 +520,6 @@ def test_sendpay(node_factory):
|
||||
invoices = dst.rpc.listinvoices(label)['invoices']
|
||||
return len(invoices) == 1 and invoices[0]['status'] == 'unpaid'
|
||||
|
||||
def only_one(arr):
|
||||
assert len(arr) == 1
|
||||
return arr[0]
|
||||
|
||||
routestep = {
|
||||
'msatoshi': amt,
|
||||
'id': l2.info['id'],
|
||||
|
Loading…
Reference in New Issue
Block a user