Skip to content

Commit

Permalink
Run black
Browse files Browse the repository at this point in the history
  • Loading branch information
maximusunc committed Aug 29, 2024
1 parent 6d28e41 commit 7ff01a9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/helpers/mock_responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@
},
],
},
}
}
3 changes: 2 additions & 1 deletion tests/helpers/mocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from test_harness.slacker import Slacker
from test_harness.runner.query_runner import QueryRunner


class MockReporter(Reporter):
def __init__(self, base_url=None, refresh_token=None, logger=None):
super().__init__()
Expand Down Expand Up @@ -61,7 +62,7 @@ async def retrieve_registry(self, trapi_version: str):
"_id": "testing",
"title": "Tester",
"infores": "infores:tester",
"url": "http://tester"
"url": "http://tester",
}
],
},
Expand Down
10 changes: 6 additions & 4 deletions tests/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ async def test_run_tests(mocker, httpx_mock: HTTPXMock):
return_value=MockQueryRunner(logger),
)
httpx_mock.add_response(
url="http://tester/query", json=kp_response,
url="http://tester/query",
json=kp_response,
)
httpx_mock.add_response(
url="https://nodenorm.ci.transltr.io/get_normalized_nodes", json={
url="https://nodenorm.ci.transltr.io/get_normalized_nodes",
json={
"MONDO:0010794": None,
"DRUGBANK:DB00313": None,
"MESH:D001463": None,
}
},
)
full_report = await run_tests(
reporter=MockReporter(
Expand All @@ -45,6 +47,6 @@ async def test_run_tests(mocker, httpx_mock: HTTPXMock):
args={
"suite": "testing",
"trapi_version": "1.5.0",
}
},
)
assert full_report["SKIPPED"] == 2

0 comments on commit 7ff01a9

Please sign in to comment.