Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 035128d

Browse files
committed
Switch from pip3 to pipx in JupyterLab tests
1 parent 65040e3 commit 035128d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

jupyterlab/main.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const executeScriptInContainerWithPip = async (
2222
}> => {
2323
const instance = findResourceInstance(state, "coder_script");
2424
const id = await runContainer(image);
25-
const respPip = await execContainer(id, [shell, "-c", "apk add py3-pip"]);
25+
const respPipx = await execContainer(id, [shell, "-c", "apk add pipx"]);
2626
const resp = await execContainer(id, [shell, "-c", instance.script]);
2727
const stdout = resp.stdout.trim().split("\n");
2828
const stderr = resp.stderr.trim().split("\n");
@@ -40,22 +40,22 @@ describe("jupyterlab", async () => {
4040
agent_id: "foo",
4141
});
4242

43-
it("fails without pip3", async () => {
43+
it("fails without pipx", async () => {
4444
const state = await runTerraformApply(import.meta.dir, {
4545
agent_id: "foo",
4646
});
4747
const output = await executeScriptInContainer(state, "alpine");
4848
expect(output.exitCode).toBe(1);
4949
expect(output.stdout).toEqual([
5050
"\u001B[0;1mInstalling jupyterlab!",
51-
"pip3 is not installed",
52-
"Please install pip3 in your Dockerfile/VM image before running this script",
51+
"pipx is not installed",
52+
"Please install pipx in your Dockerfile/VM image before running this script",
5353
]);
5454
});
5555

56-
// TODO: Add faster test to run with pip3.
56+
// TODO: Add faster test to run with pipx.
5757
// currently times out.
58-
// it("runs with pip3", async () => {
58+
// it("runs with pipx", async () => {
5959
// ...
6060
// const output = await executeScriptInContainerWithPip(state, "alpine");
6161
// ...

0 commit comments

Comments
 (0)