From 2e497c64b31cd96dcace49a5e95e59e55b091f47 Mon Sep 17 00:00:00 2001 From: Vladislav Date: Thu, 22 May 2025 23:19:25 +0300 Subject: [PATCH] test pipeline 4 --- app.py | 6 +----- test_app.py | 5 ++--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/app.py b/app.py index d332739..00f2c68 100644 --- a/app.py +++ b/app.py @@ -1,5 +1,3 @@ - - from flask import Flask app = Flask(__name__) @@ -10,6 +8,4 @@ def hello(): 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 0172aba..cee46e7 100644 --- a/test_app.py +++ b/test_app.py @@ -1,10 +1,9 @@ from app import app -import pytest +import pytest # noqa: F401 def test_hello(): with app.test_client() as client: response = client.get('/') assert response.data == b'Hello, DevOps!' - assert response.status_code == 200 - + assert response.status_code == 200 \ No newline at end of file