From 7ff01a9d225dc6b46e68794320cc9af24a82d1c6 Mon Sep 17 00:00:00 2001 From: Max Wang Date: Thu, 29 Aug 2024 14:51:26 -0400 Subject: [PATCH] Run black --- tests/helpers/mock_responses.py | 2 +- tests/helpers/mocks.py | 3 ++- tests/test_run.py | 10 ++++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/tests/helpers/mock_responses.py b/tests/helpers/mock_responses.py index 24e77a6..598de52 100644 --- a/tests/helpers/mock_responses.py +++ b/tests/helpers/mock_responses.py @@ -77,4 +77,4 @@ }, ], }, -} \ No newline at end of file +} diff --git a/tests/helpers/mocks.py b/tests/helpers/mocks.py index 04592da..1e4288a 100644 --- a/tests/helpers/mocks.py +++ b/tests/helpers/mocks.py @@ -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__() @@ -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", } ], }, diff --git a/tests/test_run.py b/tests/test_run.py index f9f1057..d4c4ae1 100644 --- a/tests/test_run.py +++ b/tests/test_run.py @@ -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( @@ -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