.
This commit is contained in:
14
testnew/python/gemini/tests/test_main.py
Normal file
14
testnew/python/gemini/tests/test_main.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import pytest
|
||||
from app.main import app
|
||||
|
||||
@pytest.fixture
|
||||
def client():
|
||||
app.config['TESTING'] = True
|
||||
with app.test_client() as client:
|
||||
yield client
|
||||
|
||||
def test_health_check(client):
|
||||
"""Test the health check endpoint."""
|
||||
rv = client.get('/health')
|
||||
assert rv.status_code == 200
|
||||
assert rv.get_json() == {'status': 'UP'}
|
||||
Reference in New Issue
Block a user