Add mock and assert for test_list_asset_with_filters_failure
@@ -65,9 +65,11 @@ def test_list_asset_with_filters(client, mocker):
def test_list_asset_with_filters_failure(client, mocker):
items = [datastore.ALGO]
+ m = mock_requests(mocker, "get", response=[items])
filters = 'foo'
with pytest.raises(ValueError) as exc_info:
client.list_algo(filters)
+ m.assert_not_called()
assert str(exc_info.value).startswith("Cannot load filters")
