From f3e38709d3cd3aacd2f0dbd77736d250f50c27b2 Mon Sep 17 00:00:00 2001 From: Vladislav Date: Wed, 21 May 2025 22:07:43 +0300 Subject: [PATCH] test pipeline 2 --- app.py | 8 +++++++- test_app.py | 4 +++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index d96fe31..d332739 100644 --- a/app.py +++ b/app.py @@ -1,9 +1,15 @@ + + from flask import Flask app = Flask(__name__) + @app.route('/') def hello(): return 'Hello, DevOps!' + if __name__ == '__main__': - app.run(host='0.0.0.0', port=5000) \ No newline at end of file + app.run(host='0.0.0.0', port=5000) + + \ No newline at end of file diff --git a/test_app.py b/test_app.py index 1d14736..0430ffa 100644 --- a/test_app.py +++ b/test_app.py @@ -5,4 +5,6 @@ def test_hello(): with app.test_client() as client: response = client.get('/') assert response.data == b'Hello, DevOps!' - assert response.status_code == 200 \ No newline at end of file + assert response.status_code == 200 + + \ No newline at end of file