From 8093bc17cab8597f5fc14bd1c62d9bdc820479c7 Mon Sep 17 00:00:00 2001 From: olivier de Meringo Date: Wed, 2 Oct 2024 11:54:49 +0200 Subject: [PATCH] feat(test): remove the semver format test because API is not strictly using this scheme. Related to #299 --- tests/api/test_utils.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/api/test_utils.py b/tests/api/test_utils.py index 71695c14..acc610e5 100644 --- a/tests/api/test_utils.py +++ b/tests/api/test_utils.py @@ -62,10 +62,10 @@ async def test_get_api_version_is_not_empty_string(): res = await ac.get('/v1/utils/version') assert res.json() -@pytest.mark.asyncio -async def test_get_api_version_is_semver(): - async with AsyncClient(app=app, base_url="http://test") as ac: - res = await ac.get('/v1/utils/version') - # Check returned version matches semver regex - # See https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string - assert re.match("^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$", res.json()) \ No newline at end of file +# @pytest.mark.asyncio +# async def test_get_api_version_is_semver(): +# async with AsyncClient(app=app, base_url="http://test") as ac: +# res = await ac.get('/v1/utils/version') +# # Check returned version matches semver regex +# # See https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string +# assert re.match("^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$", res.json()) \ No newline at end of file