This commit is contained in:
19
services/game/tests/test_app.py
Normal file
19
services/game/tests/test_app.py
Normal file
@@ -0,0 +1,19 @@
|
||||
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!"
|
||||
Reference in New Issue
Block a user