Skip to content

Commit

Permalink
Added fixes for unit old tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cszsol committed Sep 25, 2024
1 parent 88e89b1 commit d8faa45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions tests/test_resolving.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async def test_sparql_exact_resolve(httpx_mock, get_resolve_query_output):
}
]

httpx_mock.reset(assert_all_responses_were_requested=False)
httpx_mock.reset()

mtype = "Interneuron"
mocked_response = get_resolve_query_output[1]
Expand Down Expand Up @@ -83,7 +83,7 @@ async def test_sparql_fuzzy_resolve(httpx_mock, get_resolve_query_output):
"id": "http://api.brain-map.org/api/v2/data/Structure/463",
},
]
httpx_mock.reset(assert_all_responses_were_requested=False)
httpx_mock.reset()

mtype = "Interneu"
mocked_response = get_resolve_query_output[3]
Expand Down Expand Up @@ -142,7 +142,7 @@ async def test_es_resolve(httpx_mock, get_resolve_query_output):
"id": "http://api.brain-map.org/api/v2/data/Structure/184",
},
]
httpx_mock.reset(assert_all_responses_were_requested=True)
httpx_mock.reset()

mtype = "Ventral neuron"
mocked_response = get_resolve_query_output[5]
Expand Down Expand Up @@ -221,7 +221,7 @@ async def test_resolve_query(httpx_mock, get_resolve_query_output):
"id": "http://api.brain-map.org/api/v2/data/Structure/463",
},
]
httpx_mock.reset(assert_all_responses_were_requested=True)
httpx_mock.reset()

httpx_mock.add_response(url=url, json=get_resolve_query_output[0])

Expand Down Expand Up @@ -252,7 +252,7 @@ async def test_resolve_query(httpx_mock, get_resolve_query_output):
"id": "http://api.brain-map.org/api/v2/data/Structure/549",
}
]
httpx_mock.reset(assert_all_responses_were_requested=True)
httpx_mock.reset()
httpx_mock.add_response(
url=url,
json={
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ async def test_get_file_from_KG_errors(httpx_mock):
)
assert not_found.value.args[0] == "No file url was found."

httpx_mock.reset(assert_all_responses_were_requested=True)
httpx_mock.reset()
# no file found corresponding to file_url
test_file_url = "http://test_url.com"
json_response = {
Expand Down

0 comments on commit d8faa45

Please sign in to comment.