This commit is contained in:
David Dalcino
2021-07-22 11:41:32 -07:00
parent 08a0ad0182
commit f590ff78ef

View File

@@ -723,7 +723,7 @@ def test_list_tool_cli(monkeypatch, capsys, host: str, target: str, tool_name: s
def _mock_fetch_http(_, rest_of_url: str) -> str: def _mock_fetch_http(_, rest_of_url: str) -> str:
if not rest_of_url.endswith("Updates.xml"): if not rest_of_url.endswith("Updates.xml"):
return htmltext return htmltext
folder = urlparse(rest_of_url).path.split('/')[-2] folder = urlparse(rest_of_url).path.split("/")[-2]
assert folder.startswith("tools_") assert folder.startswith("tools_")
return xmltext return xmltext