lollms-webui/tests/unitary_tests/test_app.py

16 lines
284 B
Python
Raw Normal View History

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