Skip to content

Commit

Permalink
test: add api url tests
Browse files Browse the repository at this point in the history
  • Loading branch information
afuetterer committed Sep 28, 2023
1 parent a818bcd commit 197f823
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/api/test_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,15 @@ def test_schema_returns_200(client: FlaskClient) -> None:
valid_url = "/fuji/api/v1/openapi.json"
response = client.get(valid_url)
assert response.status_code == HTTP_200_OK


def test_all_metrics_returns_200(client: FlaskClient) -> None:
valid_url = "/fuji/api/v1/metrics/0.5"
response = client.get(valid_url)
assert response.status_code == HTTP_200_OK


def test_single_metric_returns_200(client: FlaskClient) -> None:
valid_url = "/fuji/api/v1/metrics/0.5/FsF-F1-01D-1"
response = client.get(valid_url)
assert response.status_code == HTTP_200_OK

0 comments on commit 197f823

Please sign in to comment.