From e59c188c1936d779c51fd7f8891425ef236a0f38 Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Tue, 24 Oct 2023 12:45:36 +0100 Subject: [PATCH] Fix mypy assignment error Fix: ``` lib/tool_shed/test/functional/test_shed_tools.py:30: error: Incompatible types in assignment (expression has type "BuildSearchIndexResponse", variable has type "ToolSearchResults") [assignment] response = populator.reindex() ^ lib/tool_shed/test/functional/test_shed_tools.py:31: error: Incompatible types in assignment (expression has type "BuildSearchIndexResponse", variable has type "ToolSearchResults") [assignment] response = populator.reindex() ^ ``` --- lib/tool_shed/test/functional/test_shed_tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tool_shed/test/functional/test_shed_tools.py b/lib/tool_shed/test/functional/test_shed_tools.py index 8d91ce088b73..c54dd825e479 100644 --- a/lib/tool_shed/test/functional/test_shed_tools.py +++ b/lib/tool_shed/test/functional/test_shed_tools.py @@ -27,8 +27,8 @@ def test_tool_search(self): assert tool_search_hit.tool.name == "Compute" # ensure re-index doesn't modify number of hits (regression of an issue pre-Fall 2022) - response = populator.reindex() - response = populator.reindex() + populator.reindex() + populator.reindex() response = populator.tool_search_query("Compute") new_hit_count = len(response.hits)