From 51829b4dcfa43e82250593f19cee96f673950a3d Mon Sep 17 00:00:00 2001 From: Richard Bruskiewich Date: Fri, 26 May 2023 18:48:06 -0700 Subject: [PATCH] fix unit test, rerelease minor patch --- CHANGELOG.md | 3 ++- pyproject.toml | 2 +- tests/test_validation_report.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 001e2ce..3745d31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,8 +3,9 @@ The Reasoner Validator package is evolving along with progress in TRAPI and Biolink Model standards within the NCATS Biomedical Knowledge Translator. -## v3.5.1 +## v3.5.2 - patched unit test in v3.5.1 - error.trapi.validation 'reason' message text shortened by pruning to use only the start and end of the JSON Schema generated ValidationError message, to a maximum of 160 characters +- unit tests fixed ## v3.5.0 diff --git a/pyproject.toml b/pyproject.toml index 3203913..91f6661 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "reasoner-validator" -version = "3.5.1" +version = "3.5.2" description = "Validation tools for Reasoner API" authors = [ "Richard Bruskiewich ", diff --git a/tests/test_validation_report.py b/tests/test_validation_report.py index 977ed1d..800115e 100644 --- a/tests/test_validation_report.py +++ b/tests/test_validation_report.py @@ -302,7 +302,7 @@ def test_messages(): errors: List[str] = list() for code, parameters in messages['errors'].items(): errors.extend(CodeDictionary.display(code, parameters, add_prefix=True)) - assert "ERROR - Trapi: Schema validation exception" in errors + assert "ERROR - Trapi: Schema validation error" in errors obj = reporter1.to_dict() assert obj["trapi_version"] == TEST_TRAPI_VERSION