mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
16 lines
284 B
Python
16 lines
284 B
Python
import pytest
|
|
|
|
from app_old 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
|