From f6653d0c18b2b975bc47957b6c3bd7413d317698 Mon Sep 17 00:00:00 2001 From: Nikita Kovaliov Date: Sat, 27 Jul 2024 14:20:39 +0300 Subject: [PATCH] Fix existing tests --- tests/rest_api/tests/api_info/test_api.py | 2 +- .../tests/api_validate/test_api_validate_details.py | 2 +- tests/rest_api/tests/base_test.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/rest_api/tests/api_info/test_api.py b/tests/rest_api/tests/api_info/test_api.py index c844e3cb..fa8ae8d0 100644 --- a/tests/rest_api/tests/api_info/test_api.py +++ b/tests/rest_api/tests/api_info/test_api.py @@ -5,7 +5,7 @@ VERAPDF_REST_ID = "verapdf-rest" buildDate_regex = re.compile(r"^[0-9]+$") -version_regex = re.compile(r"^[0-9]\.[0-9]\.[0-9]-SNAPSHOT") +version_regex = re.compile(r"^[0-9]\.[0-9][0-9]\.[0-9]") def test_api_check(get_base_url): diff --git a/tests/rest_api/tests/api_validate/test_api_validate_details.py b/tests/rest_api/tests/api_validate/test_api_validate_details.py index e9dcdf68..b4448646 100644 --- a/tests/rest_api/tests/api_validate/test_api_validate_details.py +++ b/tests/rest_api/tests/api_validate/test_api_validate_details.py @@ -6,7 +6,7 @@ ApiValidateDetails, ) -details_version = re.compile(r"\d\.\d\d\.\d\d\d") +details_version = re.compile(r"\d.\d\d.\d+") def test_api_validate_details_check(get_base_url): diff --git a/tests/rest_api/tests/base_test.py b/tests/rest_api/tests/base_test.py index 454e41bb..2225f6ef 100644 --- a/tests/rest_api/tests/base_test.py +++ b/tests/rest_api/tests/base_test.py @@ -24,9 +24,9 @@ class BaseClass: ("4e", "PDFA_4_E", "PDF/A-4E validation profile", 108, ("6.1.6.2", 1)), ("4f", "PDFA_4_F", "PDF/A-4F validation profile", 108, ("6.2.4.2", 3)), ("ua1", "PDFUA_1", "PDF/UA-1 validation profile", 104, ("7.18.8", 1)), - ("ua2", "PDFUA_2", "PDF/UA-2 + Tagged PDF validation profile", 1744, ("5", 5)), - ("wt1a", "WTPDF_1_0_ACCESSIBILITY", "WTPDF 1.0 Accessibility validation profile", 86, ("5", 5)), - ("wt1r", "WTPDF_1_0_REUSE", "WTPDF 1.0 Reuse validation profile", 73, ("5", 5)), + ("ua2", "PDFUA_2", "PDF/UA-2 + Tagged PDF validation profile", 1745, ("5", 5)), + ("wt1a", "WTPDF_1_0_ACCESSIBILITY", "WTPDF 1.0 Accessibility validation profile", 87, ("8.4.3", 3)), + ("wt1r", "WTPDF_1_0_REUSE", "WTPDF 1.0 Reuse validation profile", 74, ("8.4.5.4", 3)), ) FLAVOURS_LIST = sorted(