@@ -3,7 +3,6 @@ import { afterEach, beforeEach, describe, it, suite } from 'mocha'
33import { expect } from 'chai'
44import { stub , restore , spy , match } from 'sinon'
55import { window , commands , workspace , Uri } from 'vscode'
6- import { ensureFileSync } from 'fs-extra'
76import {
87 closeAllEditors ,
98 configurationChangeEvent ,
@@ -27,10 +26,6 @@ import { OutputChannel } from '../../vscode/outputChannel'
2726import { WorkspaceExperiments } from '../../experiments/workspace'
2827import { QuickPickItemWithValue } from '../../vscode/quickPick'
2928import { MIN_CLI_VERSION } from '../../cli/constants'
30- import { dvcDemoPath } from '../util'
31- import { fireWatcher } from '../../fileSystem/watcher'
32- import { exists } from '../../fileSystem'
33- import { getVenvBinPath } from '../../python'
3429
3530suite ( 'Extension Test Suite' , ( ) => {
3631 const dvcPathOption = 'dvc.dvcPath'
@@ -374,37 +369,6 @@ suite('Extension Test Suite', () => {
374369 { duration : 0 }
375370 )
376371 } ) . timeout ( WEBVIEW_TEST_TIMEOUT )
377-
378- it ( 'should call setup if the cli is inaccessible and a virtual environment is updated with DVC' , async ( ) => {
379- const updateEvent = new Promise ( resolve =>
380- workspace . onDidChangeConfiguration ( e => {
381- if ( e . affectsConfiguration ( dvcPathOption ) ) {
382- resolve ( undefined )
383- }
384- } )
385- )
386-
387- workspace
388- . getConfiguration ( )
389- . update ( dvcPathOption , join ( 'not' , 'a' , 'valid' , 'dvc' , 'path' ) , false )
390-
391- await updateEvent
392-
393- const mockSetup = stub ( Setup , 'setup' )
394- const setupEvent = new Promise ( resolve =>
395- mockSetup . callsFake ( ( ) => {
396- resolve ( undefined )
397- return Promise . resolve ( undefined )
398- } )
399- )
400-
401- const dvcPath = getVenvBinPath ( dvcDemoPath , '.env' , 'dvc' )
402- exists ( dvcPath ) ? fireWatcher ( dvcPath ) : ensureFileSync ( dvcPath )
403-
404- await setupEvent
405-
406- expect ( mockSetup ) . to . be . calledOnce
407- } ) . timeout ( WEBVIEW_TEST_TIMEOUT )
408372 } )
409373
410374 describe ( 'dvc.stopRunningExperiment' , ( ) => {
0 commit comments