lnbits-legend/lnbits
Vlad Stan ea58b51619
test: add tests for alby (#2390)
* test: initial commit

* chore: code format

* fix: comment out bad `status.pending` (to be fixed in core)

* fix: 404 tests

* test: extract first `create_invoice` test

* chore: reminder

* add: error test

* chore: experiment

* feat: adapt parsing

* refactor: data structure

* fix: some tests

* fix: make response uniform

* fix: test data

* chore: clean-up

* fix: uniform responses

* fix: user agent

* fix: user agent

* fix: user-agent again

* test: add `with error` test

* feat: customize test name

* fix: better exception handling for `status`

* fix: add `try-catch` for `raise_for_status`

* test: with no mocks

* chore: clean-up generalized tests

* chore: code format

* chore: code format

* chore: remove extracted tests

* test: add `create_invoice`: error test

* add: test for `create_invoice` with http 404

* test: extract `test_pay_invoice_ok`

* test: extract `test_pay_invoice_error_response`

* test: extract `test_pay_invoice_http_404`

* test: add "missing data"

* test: add `bad-json`

* test: add `no mocks` for `create_invoice`

* test: add `no mocks` for `pay_invoice`

* test: add `bad json` tests

* chore: re-order tests

* test: add `missing data` test for `pay_imvoice`

* chore: re-order tests

* test: add `success` test for `get_invoice_status `

* feat: update test structure

* test: new status

* test: add more test

* chore: code clean-up

* test: add success test for `get_payment_status `

* test: add `pending` tests for `check_payment_status`

* chore: remove extracted tests

* test: add more tests

* test: add `no mocks` test

* fix: funding source loading

* refactor: start to extract data model

* chore: final clean-up

* chore: rename file

* test: add tests for alby

* refactor: `KeyError` handling

* chore: log error

* chore: skip the negative fee test

* fix: error message fetching
2024-04-08 13:26:00 +03:00
..
core chore: adhere to ruff's C (#2379) 2024-04-03 17:56:05 +02:00
nodes chore: adhere to ruff's C (#2379) 2024-04-03 17:56:05 +02:00
static bundle 2024-04-05 11:00:45 +02:00
templates bug: show extensions in frontend had wrong boolean (#2370) 2024-03-27 12:00:50 +01:00
utils feat: reduce initial requests on wallet page (#2335) 2024-03-22 12:59:49 +01:00
wallets test: add tests for alby (#2390) 2024-04-08 13:26:00 +03:00
__init__.py refactor: clean up __init__ file following some Flask conventions 2020-09-06 21:06:01 -03:00
__main__.py overall fixes 2022-10-25 09:23:30 +02:00
app.py refactor: use new fastapi lifespan instead of startup/shutdown events (#2294) 2024-04-05 07:05:26 +02:00
bolt11.py adding bolt11 lib and removing bolt11.py from the codebase (#1817) 2023-09-25 12:06:54 +02:00
commands.py chore: adhere to ruff's A 2024-04-02 17:11:06 +02:00
db.py chore: adhere to ruff's A 2024-04-02 17:11:06 +02:00
decorators.py chore: keychecker todo remove type ignores (#2337) 2024-03-21 11:36:01 +01:00
extension_manager.py chore: typo in function name nofiy_upgrade (#2383) 2024-04-02 08:38:12 +02:00
helpers.py feat: complete use of LNBITS_EXTENSIONS_DEACTIVATE_ALL (#2341) 2024-03-26 11:44:33 +01:00
jinja2_templating.py chore: update to latest fastapi (#2240) 2024-02-06 11:47:36 -03:00
lnurl.py feat: lnurl library update 2023-12-06 12:55:01 +01:00
middleware.py chore: adhere to ruff's C (#2379) 2024-04-03 17:56:05 +02:00
requestvars.py I want them to turn black 2021-10-17 18:33:29 +01:00
server.py chore: adhere to ruff's C (#2379) 2024-04-03 17:56:05 +02:00
settings.py feat: complete use of LNBITS_EXTENSIONS_DEACTIVATE_ALL (#2341) 2024-03-26 11:44:33 +01:00
tasks.py feat: create_unique_task helper (#2292) 2024-03-18 13:02:04 +00:00