2025-05-21 21:15:44 +03:00
|
|
|
from app import app
|
2025-05-22 23:19:25 +03:00
|
|
|
import pytest # noqa: F401
|
2025-05-21 21:15:44 +03:00
|
|
|
|
2025-05-21 22:10:18 +03:00
|
|
|
|
2025-05-21 21:15:44 +03:00
|
|
|
def test_hello():
|
|
|
|
with app.test_client() as client:
|
|
|
|
response = client.get('/')
|
|
|
|
assert response.data == b'Hello, DevOps!'
|
2025-05-22 23:21:05 +03:00
|
|
|
assert response.status_code == 200
|