test pipeline 4
Some checks failed
CI Pipeline / lint (push) Failing after 14s
CI Pipeline / test (push) Successful in 7s
CI Pipeline / build (push) Has been skipped

This commit is contained in:
Vladislav 2025-05-22 23:19:25 +03:00
parent a829588b51
commit 2e497c64b3
2 changed files with 3 additions and 8 deletions

6
app.py
View File

@ -1,5 +1,3 @@
from flask import Flask from flask import Flask
app = Flask(__name__) app = Flask(__name__)
@ -10,6 +8,4 @@ def hello():
if __name__ == '__main__': if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000) app.run(host='0.0.0.0', port=5000)

View File

@ -1,10 +1,9 @@
from app import app from app import app
import pytest import pytest # noqa: F401
def test_hello(): def test_hello():
with app.test_client() as client: with app.test_client() as client:
response = client.get('/') response = client.get('/')
assert response.data == b'Hello, DevOps!' assert response.data == b'Hello, DevOps!'
assert response.status_code == 200 assert response.status_code == 200