Skip to content

Commit 13e6b8e

Browse files
committed
fix useless test
1 parent 7ea4534 commit 13e6b8e

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

src/test/interpreters/display.unit.test.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,7 @@ suite('Interpreters Display', () => {
223223
.returns(() => Promise.resolve(activeInterpreter));
224224

225225
await interpreterDisplay.refresh(resource);
226-
traceLogStub.calledOnceWithExactly(
227-
`Python interpreter path: ${activeInterpreter.path}`,
228-
activeInterpreter.path,
229-
);
226+
sinon.assert.calledOnce(traceLogStub);
230227
});
231228
test('If interpreter is not identified then tooltip should point to python Path', async () => {
232229
const resource = Uri.file('x');
@@ -261,7 +258,6 @@ suite('Interpreters Display', () => {
261258
});
262259
test('If interpreter file does not exist then update status bar accordingly', async () => {
263260
const resource = Uri.file('x');
264-
const pythonPath = path.join('user', 'development', 'env', 'bin', 'python');
265261
const workspaceFolder = Uri.file('workspace');
266262
setupWorkspaceFolder(resource, workspaceFolder);
267263

@@ -271,12 +267,6 @@ suite('Interpreters Display', () => {
271267
interpreterService
272268
.setup((i) => i.getActiveInterpreter(TypeMoq.It.isValue(workspaceFolder)))
273269
.returns(() => Promise.resolve(undefined));
274-
fileSystem
275-
.setup((f) => f.fileExists(TypeMoq.It.isValue(pythonPath)))
276-
.returns(() => Promise.resolve(false));
277-
interpreterHelper
278-
.setup((v) => v.getInterpreterInformation(TypeMoq.It.isValue(pythonPath)))
279-
.returns(() => Promise.resolve(undefined));
280270

281271
await interpreterDisplay.refresh(resource);
282272

0 commit comments

Comments
 (0)