test1/test_app.py
Vladislav ad4636e4b8
Some checks failed
CI Pipeline / lint (push) Failing after 3m42s
CI Pipeline / test (push) Successful in 18s
CI Pipeline / build (push) Has been skipped
test pipeline 1
2025-05-21 21:15:44 +03:00

8 lines
218 B
Python

from app import app
import pytest
def test_hello():
with app.test_client() as client:
response = client.get('/')
assert response.data == b'Hello, DevOps!'
assert response.status_code == 200