test: configure Travis for CI
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,3 @@
|
||||
def test_homepage(client):
|
||||
r = client.get("/")
|
||||
assert b"Add a new wallet" in r.data
|
||||
Reference in New Issue
Block a user