lollms-webui/test/test_app.py

13 lines
277 B
Python
Raw Normal View History

2023-04-06 19:12:49 +00:00
import pytest
from app import app
@pytest.fixture
def client():
with app.test_client() as client:
yield client
def test_homepage(client):
response = client.get('/')
assert response.status_code == 200
assert b"Welcome to my Flask app" in response.data