python-appv2/test_app.py

13 lines
291 B
Python
Raw Permalink Normal View History

2025-12-15 16:07:47 +00:00
#test_app.py
import pytest
from app import app
@pytest.fixture
def client():
app.testing = True
return app.test_client()
def test_home(client):
response = client.get("/")
assert response.status_code == 200
assert response.data == b"Hello, Jenkins Pipeline with Python!"