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
|
|
|
|
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
|
|
|
|
|
|
|
|
with app.test_client() as client:
|
|
|
|
yield client
|