From 66dab3ac1843ac3a37c3314c61d266be793b59e1 Mon Sep 17 00:00:00 2001 From: Omar-268 Date: Mon, 13 Oct 2025 13:19:24 +0000 Subject: [PATCH] Update test_app.py --- test_app.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/test_app.py b/test_app.py index 2597091..c39a090 100644 --- a/test_app.py +++ b/test_app.py @@ -1,10 +1,8 @@ -from flask import Flask +from app import app -app = Flask(__name__) - -@app.route('/') -def hello_world(): - return 'Hello, Worlddddddddddd!!!' - -if __name__ == '__main__': - app.run(debug=True) +def test_homepage(): + + with app.test_client() as client: + response = client.get('/') + assert response.status_code == 200 + assert b"Hello, Worlddddddddddd!!!" in response.data