Files
drone_example/services/game/tests/test_app.py
Ondrej Hrachovina 11d63ce765
Some checks failed
continuous-integration/drone/push Build is failing
testing of example
2024-11-28 17:17:04 +01:00

20 lines
372 B
Python

import pytest
from app import create_app
@pytest.fixture
def app():
app = create_app()
app.config.update({
"TESTING": True,
})
return app
@pytest.fixture
def client(app):
return app.test_client()
def test_hello_world(client):
response = client.get("/")
assert response.status_code == 200
assert response.data == b"Hello, World!"