Skip to content

Commit

Permalink
fix unit test, rerelease minor patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Bruskiewich committed May 27, 2023
1 parent e81edfc commit 51829b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <richard.bruskiewich@delphinai.com>",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_validation_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51829b4

Please sign in to comment.