test: configure Travis for CI
This commit is contained in:
parent
1c8beba80b
commit
178fe65fb2
8 changed files with 104 additions and 38 deletions
11
tests/conftest.py
Normal file
11
tests/conftest.py
Normal 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
3
tests/core/test_views.py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
def test_homepage(client):
|
||||
r = client.get("/")
|
||||
assert b"Add a new wallet" in r.data
|
||||
0
tests/core/test_views_api.py
Normal file
0
tests/core/test_views_api.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue