Skip to content

Commit

Permalink
Fix unit tests; some skipped temporarily (ReasonerAPI master branch b…
Browse files Browse the repository at this point in the history
…ug crash?) and fixed code of another
  • Loading branch information
RichardBruskiewich committed May 10, 2024
1 parent 74e4efb commit d33cef0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/test_trapi_versioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def test_load_schema_with_semver_trapi_version():
assert schema


@pytest.mark.skip("May 9, 2024 master branch of ReasonerAPI has a schema bug which crashes this test")
def test_load_schema_with_branch_name_as_trapi_version():
trapi_version: str = get_latest_version(release_tag="master")
schema: Dict = load_schema(trapi_version)
Expand Down
1 change: 1 addition & 0 deletions tests/test_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def test_load_schema(trapi_version: str):
assert schema, f"TRAPI Schema for release '{trapi_version}' is not available?"


@pytest.mark.skip("May 9, 2024 master branch of ReasonerAPI has a schema bug which crashes this test")
def test_load_master_schema():
"""Test load_schema('master')."""
schema = load_schema("master")
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 @@ -647,7 +647,7 @@ def test_messages():
identifier="biolink:this_is_a_mixin",
edge_id="a-biolink:this_is_a_mixin->b"
)
reporter2.report("warning.trapi.response.results.empty")
reporter2.report("warning.trapi.response.message.results.empty")
reporter2.report("error.knowledge_graph.edges.empty")
reporter1.merge(reporter2)

Expand Down

0 comments on commit d33cef0

Please sign in to comment.