test1/test_app.py
Vladislav 2e497c64b3
Some checks failed
CI Pipeline / lint (push) Failing after 14s
CI Pipeline / test (push) Successful in 7s
CI Pipeline / build (push) Has been skipped
test pipeline 4
2025-05-22 23:19:25 +03:00

9 lines
233 B
Python

from app import app
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