2020-04-27 17:01:53 +00:00
|
|
|
import pytest
|
|
|
|
|
2020-09-05 06:00:44 +00:00
|
|
|
from lnbits.app import create_app
|
2020-04-27 17:01:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture
|
2020-09-18 01:41:30 +00:00
|
|
|
@pytest.mark.asyncio
|
|
|
|
async def client():
|
2020-09-05 06:00:44 +00:00
|
|
|
app = create_app()
|
2020-04-27 17:01:53 +00:00
|
|
|
app.config["TESTING"] = True
|
|
|
|
|
2020-09-18 01:41:30 +00:00
|
|
|
async with app.test_client() as client:
|
2020-04-27 17:01:53 +00:00
|
|
|
yield client
|