lnbits/tests/api
padreug ab19685a2a feat: implement automatic crediting of new accounts with 1 million satoshis
- Modified the user account creation process to automatically credit new
accounts with 1,000,000 satoshis upon creation.
- Updated the `create_user_account_no_ckeck` function to include error
handling and logging for the credit operation.
- Enhanced tests to verify the balance for newly registered users,
ensuring the correct credit amount is applied.
- Documented affected account creation paths and testing instructions in
the new `AUTO_CREDIT_CHANGES.md` file.

fix: pass db connection to update_wallet_balance to prevent SQLite deadlock

The auto-credit feature was causing a deadlock on SQLite because
update_wallet_balance was opening a new database connection while
already inside a transaction. By passing conn=conn, we reuse the
existing connection and avoid the deadlock.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 13:02:14 +01:00
..
__init__.py test: restructure tests (#2444) 2024-04-19 13:22:06 +02:00
test_admin_api.py fix: better differentiation between UNAUTHORIZED and FORBIDDEN (#3139) 2025-05-05 10:55:58 +02:00
test_api.py feat: add support for paying amountless BOLT11 invoices 2026-01-09 19:43:50 +01:00
test_auth.py feat: implement automatic crediting of new accounts with 1 million satoshis 2026-01-11 13:02:14 +01:00
test_generic.py feat: move wallet.html to vue component. FINAL DynamicComponent pr (#3559) 2025-11-25 11:45:53 +01:00
test_users.py [fix] user sorting performance (#3561) 2025-11-25 09:16:35 +02:00
test_webpush_api.py [feat] access control lists (with access tokens) (#2864) 2025-01-16 17:25:27 +02:00