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:
Sebastian Falbesoner 2021-08-23 00:45:20 +02:00 committed by Rusty Russell
parent 48473eb3e9
commit c970195b93
1 changed files with 0 additions and 4 deletions

View File

@ -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'],