aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2023-04-26 19:50:11 +0200
committerGitHub <noreply@github.com>2023-04-26 19:50:11 +0200
commit646ef07907e0960987c13c0b13f69eb808cc66ad (patch)
tree0c0549208e4bea202ea454359746b68f58151d79 /tests
parentchore: release v1.0.0 (#1262) (diff)
downloadmason-646ef07907e0960987c13c0b13f69eb808cc66ad.tar
mason-646ef07907e0960987c13c0b13f69eb808cc66ad.tar.gz
mason-646ef07907e0960987c13c0b13f69eb808cc66ad.tar.bz2
mason-646ef07907e0960987c13c0b13f69eb808cc66ad.tar.lz
mason-646ef07907e0960987c13c0b13f69eb808cc66ad.tar.xz
mason-646ef07907e0960987c13c0b13f69eb808cc66ad.tar.zst
mason-646ef07907e0960987c13c0b13f69eb808cc66ad.zip
fix(pypi): also provide install_extra_args to pypi.install (#1263)
Closes #1224.
Diffstat (limited to 'tests')
-rw-r--r--tests/mason-core/installer/registry/providers/pypi_spec.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/mason-core/installer/registry/providers/pypi_spec.lua b/tests/mason-core/installer/registry/providers/pypi_spec.lua
index 25119486..f6f4c5c3 100644
--- a/tests/mason-core/installer/registry/providers/pypi_spec.lua
+++ b/tests/mason-core/installer/registry/providers/pypi_spec.lua
@@ -76,7 +76,11 @@ describe("pypi provider :: installing", function()
install_extra_args = { "--proxy", "http://localghost" },
}
assert.spy(manager.install).was_called(1)
- assert.spy(manager.install).was_called_with("package", "1.5.0", { extra = "lsp", extra_packages = { "extra" } })
+ assert.spy(manager.install).was_called_with(
+ "package",
+ "1.5.0",
+ { extra = "lsp", extra_packages = { "extra" }, install_extra_args = { "--proxy", "http://localghost" } }
+ )
settings.set(settings._DEFAULT_SETTINGS)
end)