Skip to content

Commit d8ecfda

Browse files
fix: finalize uv run task tests
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 8b5c11a commit d8ecfda

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
@@ -202,6 +202,7 @@ suite('runAsTask Tests', () => {
202202

203203
await runAsTask(environment, options);
204204

205+
const taskArg = mockExecuteTask.firstCall.args[0] as Task;
205206
const execution = taskArg.execution as ShellExecution;
206207

207208
assert.strictEqual(execution.command, '"uv"', 'Should quote the uv executable when required');
@@ -256,7 +257,6 @@ suite('runAsTask Tests', () => {
256257
mockTraceInfo.calledWith(sinon.match(/Running as task: \/path\/to\/python --default-arg test\.py/)),
257258
'Should log execution with run args',
258259
);
259-
const taskArg = mockExecuteTask.firstCall.args[0] as Task;
260260
const execution = taskArg.execution as ShellExecution;
261261
assert.strictEqual(execution.command, '/path/to/python', 'Should keep the python executable when uv is off');
262262
assert.deepStrictEqual(execution.args, ['--default-arg', 'test.py'], 'Should keep the non-uv arguments');

0 commit comments

Comments
 (0)