Skip to content

Commit

Permalink
Merge pull request #420 from afuetterer/tests
Browse files Browse the repository at this point in the history
test: add api url tests
  • Loading branch information
huberrob authored Sep 29, 2023
2 parents 91e0f65 + 197f823 commit 134fb4a
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 134fb4a

Please sign in to comment.