From c970195b937bfac70b304817790767eefd518986 Mon Sep 17 00:00:00 2001 From: Sebastian Falbesoner Date: Mon, 23 Aug 2021 00:45:20 +0200 Subject: [PATCH] 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. --- tests/test_pay.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/test_pay.py b/tests/test_pay.py index 9dd91cc17..41ce0a60b 100644 --- a/tests/test_pay.py +++ b/tests/test_pay.py @@ -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'],