@@ -45,9 +45,9 @@ import * as Python from '../../../extensions/python'
4545import { ContextKey } from '../../../vscode/context'
4646import { Setup } from '../../../setup'
4747import { SetupSection } from '../../../setup/webview/contract'
48- import { DvcExecutor } from '../../../cli/dvc/executor'
4948import { getFirstWorkspaceFolder } from '../../../vscode/workspaceFolders'
5049import { Response } from '../../../vscode/response'
50+ import { DvcConfig } from '../../../cli/dvc/config'
5151
5252suite ( 'Setup Test Suite' , ( ) => {
5353 const disposable = Disposable . fn ( )
@@ -741,7 +741,7 @@ suite('Setup Test Suite', () => {
741741 const { setup, mockExecuteCommand, messageSpy } = buildSetup ( disposable )
742742 mockExecuteCommand . restore ( )
743743
744- const mockConfig = stub ( DvcExecutor . prototype , 'config' )
744+ const mockConfig = stub ( DvcConfig . prototype , 'config' )
745745 mockConfig . resolves ( '' )
746746
747747 const executeCommandSpy = spy ( commands , 'executeCommand' )
@@ -829,7 +829,7 @@ suite('Setup Test Suite', () => {
829829 it ( 'should be able to delete the Studio access token from the global dvc config' , async ( ) => {
830830 const mockConfig = stub (
831831 // eslint-disable-next-line @typescript-eslint/no-explicit-any
832- DvcExecutor . prototype ,
832+ DvcConfig . prototype ,
833833 'config'
834834 ) . resolves ( undefined )
835835
@@ -909,7 +909,7 @@ suite('Setup Test Suite', () => {
909909
910910 const mockMessageReceived = getMessageReceivedEmitter ( webview )
911911
912- const mockRemote = stub ( DvcExecutor . prototype , 'remote' )
912+ const mockRemote = stub ( DvcConfig . prototype , 'remote' )
913913
914914 const remoteAdded = new Promise ( resolve =>
915915 mockRemote . callsFake ( ( _ , ...args ) => {
@@ -948,7 +948,7 @@ suite('Setup Test Suite', () => {
948948 } ) . timeout ( WEBVIEW_TEST_TIMEOUT )
949949
950950 it ( 'should be able to add a remote' , async ( ) => {
951- const mockRemote = stub ( DvcExecutor . prototype , 'remote' )
951+ const mockRemote = stub ( DvcConfig . prototype , 'remote' )
952952
953953 const remoteAdded = new Promise ( resolve =>
954954 mockRemote . callsFake ( ( _ , ...args ) => {
@@ -998,7 +998,7 @@ suite('Setup Test Suite', () => {
998998 } ) . timeout ( WEBVIEW_TEST_TIMEOUT )
999999
10001000 it ( 'should be able to rename a remote' , async ( ) => {
1001- const mockRemote = stub ( DvcExecutor . prototype , 'remote' )
1001+ const mockRemote = stub ( DvcConfig . prototype , 'remote' )
10021002 const newName = 'better-name'
10031003
10041004 const remoteRenamed = new Promise ( resolve =>
@@ -1051,7 +1051,7 @@ suite('Setup Test Suite', () => {
10511051
10521052 const mockMessageReceived = getMessageReceivedEmitter ( webview )
10531053
1054- const mockRemote = stub ( DvcExecutor . prototype , 'remote' )
1054+ const mockRemote = stub ( DvcConfig . prototype , 'remote' )
10551055 const projectConfigUrl = 's3://different-url'
10561056
10571057 const remoteModified = new Promise ( resolve =>
@@ -1123,7 +1123,7 @@ suite('Setup Test Suite', () => {
11231123
11241124 const mockMessageReceived = getMessageReceivedEmitter ( webview )
11251125
1126- const mockRemote = stub ( DvcExecutor . prototype , 'remote' )
1126+ const mockRemote = stub ( DvcConfig . prototype , 'remote' )
11271127
11281128 let calls = 0
11291129
0 commit comments