pytest quibbles and dev dependencies.

This commit is contained in:
fiatjaf
2020-09-17 22:41:30 -03:00
parent ef0bdf8363
commit cd8a447ba0
5 changed files with 42 additions and 69 deletions

View File

@@ -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