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