Skip to content

Commit

Permalink
Fix existing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitakovaliov92 committed Jul 28, 2024
1 parent 31e9cde commit f6653d0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/rest_api/tests/api_info/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
6 changes: 3 additions & 3 deletions tests/rest_api/tests/base_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f6653d0

Please sign in to comment.