Skip to content

Commit

Permalink
add check
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Jan 2, 2025
1 parent e9a6131 commit d75bf44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/{{cookiecutter.project_slug}}/tests/test_api.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Test FastAPI endpoint function."""

from datetime import datetime
import re

import pytest
Expand All @@ -22,7 +23,6 @@ def test_service_info(api_client: TestClient):
assert response_json["name"] == "{{ cookiecutter.project_slug }}"
assert response_json["type"]["group"] == "org.genomicmedlab"
assert response_json["type"]["artifact"] == "{{ cookiecutter.project_slug }} API"
assert re.match(r"\d\.\d\.\d\.", response_json["type"]["version"])
assert response_json["description"] == "{{ cookiecutter.description }}"
assert response_json["organization"] == {
"name": "Genomic Medicine Lab at Nationwide Children's Hospital",
Expand All @@ -33,8 +33,8 @@ def test_service_info(api_client: TestClient):
response_json["documentationUrl"]
== "https://github.com/{{ cookiecutter.org }}/{{ cookiecutter.repo }}"
)
assert datetime.fromisoformat(response_json["createdAt"])
assert ServiceEnvironment(response_json["environment"])
assert re.match(r"\d\.\d\.\d\.", response_json["version"])


def test_service_info_version(api_client: TestClient):
Expand Down

0 comments on commit d75bf44

Please sign in to comment.