File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
python/{{cookiecutter.project_slug}}/tests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11"""Test FastAPI endpoint function."""
22
3+ from datetime import datetime
34import re
45
56import pytest
@@ -22,7 +23,6 @@ def test_service_info(api_client: TestClient):
2223 assert response_json ["name" ] == "{{ cookiecutter.project_slug }}"
2324 assert response_json ["type" ]["group" ] == "org.genomicmedlab"
2425 assert response_json ["type" ]["artifact" ] == "{{ cookiecutter.project_slug }} API"
25- assert re .match (r"\d\.\d\.\d\." , response_json ["type" ]["version" ])
2626 assert response_json ["description" ] == "{{ cookiecutter.description }}"
2727 assert response_json ["organization" ] == {
2828 "name" : "Genomic Medicine Lab at Nationwide Children's Hospital" ,
@@ -33,8 +33,8 @@ def test_service_info(api_client: TestClient):
3333 response_json ["documentationUrl" ]
3434 == "https://github.com/{{ cookiecutter.org }}/{{ cookiecutter.repo }}"
3535 )
36+ assert datetime .fromisoformat (response_json ["createdAt" ])
3637 assert ServiceEnvironment (response_json ["environment" ])
37- assert re .match (r"\d\.\d\.\d\." , response_json ["version" ])
3838
3939
4040def test_service_info_version (api_client : TestClient ):
You can’t perform that action at this time.
0 commit comments