Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Sep 7, 2021
1 parent 5e16ec2 commit 34295a2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/test/datascience/notebook/kernelSelection.vscode.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,17 @@ suite('DataScience - VSCode Notebook - Kernel Selection', function () {
await Promise.all([runAllCellsInActiveNotebook(), waitForExecutionCompletedSuccessfully(cell)]);

// Confirm the executable printed as a result of code in cell `import sys;sys.executable`
assertHasTextOutputInVSCode(cell, getNormalizedInterpreterPath(activeInterpreterPath), 0, false);
const output = getTextOutputValue(cell.outputs[0]);
if (
!output.includes(getNormalizedInterpreterPath(activeInterpreterPath)) &&
!output.includes(activeInterpreterPath)
) {
assert.fail(
output,
`Expected ${getNormalizedInterpreterPath(activeInterpreterPath)} or ${activeInterpreterPath}`,
'Interpreter does not match'
);
}
});
test('Ensure kernel is auto selected and interpreter is as expected', async function () {
if (IS_REMOTE_NATIVE_TEST) {
Expand Down

0 comments on commit 34295a2

Please sign in to comment.