mirror of
https://github.com/lnbits/lnbits.git
synced 2025-12-09 04:01:10 +01:00
pytest quibbles and dev dependencies.
This commit is contained in:
@@ -4,9 +4,10 @@ from lnbits.app import create_app
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def client():
|
||||
@pytest.mark.asyncio
|
||||
async def client():
|
||||
app = create_app()
|
||||
app.config["TESTING"] = True
|
||||
|
||||
with app.test_client() as client:
|
||||
async with app.test_client() as client:
|
||||
yield client
|
||||
|
||||
Reference in New Issue
Block a user