mirror of
https://github.com/lnbits/lnbits.git
synced 2025-12-15 23:22:47 +01:00
refactor: clean up __init__ file following some Flask conventions
Flask extensions are loaded in a way that makes them easily reusable by blueprints. In this commit we are also adding `environs` to manage .env and settings: breaking changes! - FLASK_APP=lnbits.app - LNBITS_ALLOWED_USERS needs to be empty now to allow all users (NOT "all")
This commit is contained in:
committed by
fiatjaf
parent
ffa3c3f6a6
commit
1bc5e144d3
@@ -1,10 +1,11 @@
|
||||
import pytest
|
||||
|
||||
from lnbits import app
|
||||
from lnbits.app import create_app
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def client():
|
||||
app = create_app()
|
||||
app.config["TESTING"] = True
|
||||
|
||||
with app.test_client() as client:
|
||||
|
||||
Reference in New Issue
Block a user