Skip to content

Commit

Permalink
Fix mypy assignment error
Browse files Browse the repository at this point in the history
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()
                       ^
```
  • Loading branch information
nsoranzo committed Oct 24, 2023
1 parent 9a356c1 commit e59c188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tool_shed/test/functional/test_shed_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e59c188

Please sign in to comment.