test: configure Travis for CI

This commit is contained in:
Eneko Illarramendi 2020-04-27 19:01:53 +02:00
parent 1c8beba80b
commit 178fe65fb2
8 changed files with 104 additions and 38 deletions

11
tests/conftest.py Normal file
View file

@ -0,0 +1,11 @@
import pytest
from lnbits import app
@pytest.fixture
def client():
app.config["TESTING"] = True
with app.test_client() as client:
yield client

3
tests/core/test_views.py Normal file
View file

@ -0,0 +1,3 @@
def test_homepage(client):
r = client.get("/")
assert b"Add a new wallet" in r.data

View file