[test] add tests for eclair funding source (#2459)

* fix: test data

* test: add `status` tests

* refactor: try-catch

* test: create invoice tests

* test: add first `payinvoice` test

* test: add pay_invoice error test

* feat: allow more test options

* test: add pending tests

* fix: make check

* test: add, pending no fee

* fix: make consistent with other API calls

* test: more assertions

* test: add pending

* test: first payment status test

* test: pending status

* refactor: remove duplicate code

* refactor: rename field

* chore: code format

* chore: uniform
This commit is contained in:
Vlad Stan
2024-04-23 16:18:52 +01:00
committed by GitHub
parent 00f39a2007
commit 8d3b156738
5 changed files with 740 additions and 86 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ class LndRestWallet(Wallet):
except Exception as exc:
logger.warning(f"LndRestWallet pay_invoice POST error: {exc}.")
return PaymentResponse(
None, None, None, None, f"Unable to connect to {self.endpoint}."
False, None, None, None, f"Unable to connect to {self.endpoint}."
)
try: