@@ -22,7 +22,7 @@ const executeScriptInContainerWithPip = async (
22
22
} > => {
23
23
const instance = findResourceInstance ( state , "coder_script" ) ;
24
24
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 " ] ) ;
26
26
const resp = await execContainer ( id , [ shell , "-c" , instance . script ] ) ;
27
27
const stdout = resp . stdout . trim ( ) . split ( "\n" ) ;
28
28
const stderr = resp . stderr . trim ( ) . split ( "\n" ) ;
@@ -40,22 +40,22 @@ describe("jupyterlab", async () => {
40
40
agent_id : "foo" ,
41
41
} ) ;
42
42
43
- it ( "fails without pip3 " , async ( ) => {
43
+ it ( "fails without pipx " , async ( ) => {
44
44
const state = await runTerraformApply ( import . meta. dir , {
45
45
agent_id : "foo" ,
46
46
} ) ;
47
47
const output = await executeScriptInContainer ( state , "alpine" ) ;
48
48
expect ( output . exitCode ) . toBe ( 1 ) ;
49
49
expect ( output . stdout ) . toEqual ( [
50
50
"\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" ,
53
53
] ) ;
54
54
} ) ;
55
55
56
- // TODO: Add faster test to run with pip3 .
56
+ // TODO: Add faster test to run with pipx .
57
57
// currently times out.
58
- // it("runs with pip3 ", async () => {
58
+ // it("runs with pipx ", async () => {
59
59
// ...
60
60
// const output = await executeScriptInContainerWithPip(state, "alpine");
61
61
// ...
0 commit comments