From 98054eb342cec0cb7f487309cc43523448996186 Mon Sep 17 00:00:00 2001 From: devops Date: Mon, 15 Dec 2025 16:07:47 +0000 Subject: [PATCH] Add test_app.py --- test_app.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test_app.py diff --git a/test_app.py b/test_app.py new file mode 100644 index 0000000..75386b9 --- /dev/null +++ b/test_app.py @@ -0,0 +1,13 @@ +#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!" \ No newline at end of file