promenade/tests/unit/api/test_health_api.py
Samantha Blanco fd31aae8e8 Add API unit tests
Add unit tests for Promenade API endpoints. Also adds validatedesign
API endpoint.

Change-Id: I4c6a5da1f521f913c94ae8a07c8bc43cf4114f75
2017-12-19 16:45:37 -05:00

16 lines
345 B
Python

import falcon
from falcon import testing
import pytest
from promenade.control import health_api
from promenade.promenade import promenade
@pytest.fixture()
def client():
return testing.TestClient(promenade)
def test_get_health(client):
response = client.simulate_get('/api/v1.0/health')
assert response.status == falcon.HTTP_204