
Add unit tests for Promenade API endpoints. Also adds validatedesign API endpoint. Change-Id: I4c6a5da1f521f913c94ae8a07c8bc43cf4114f75
16 lines
345 B
Python
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
|