Skip to content

Commit 8b5c11a

Browse files
fix: correct uv task test assertions
Agent-Logs-Url: https://github.com/microsoft/vscode-python-environments/sessions/5f628821-9c7b-48a6-9f5f-9fccb9a33bf6 Co-authored-by: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com>
1 parent b51423a commit 8b5c11a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/features/execution/runAsTask.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ suite('runAsTask Tests', () => {
154154

155155
assert.strictEqual(result, mockTaskExecution, 'Should return the task execution result');
156156

157+
const taskArg = mockExecuteTask.firstCall.args[0] as Task;
157158
const execution = taskArg.execution as ShellExecution;
158159

159160
assert.strictEqual(execution.command, 'uv', 'Should execute uv when uv mode is enabled');
@@ -201,7 +202,6 @@ suite('runAsTask Tests', () => {
201202

202203
await runAsTask(environment, options);
203204

204-
const taskArg = mockExecuteTask.firstCall.args[0] as Task;
205205
const execution = taskArg.execution as ShellExecution;
206206

207207
assert.strictEqual(execution.command, '"uv"', 'Should quote the uv executable when required');

0 commit comments

Comments
 (0)