From 2d09cc504a9b2e75d44731b4b4dcf588de534c51 Mon Sep 17 00:00:00 2001 From: Anthony Kim Date: Mon, 23 Sep 2024 17:50:33 -0700 Subject: [PATCH] adjust test for new setting value --- .../shellIntegration/pythonStartup.test.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/test/terminals/shellIntegration/pythonStartup.test.ts b/src/test/terminals/shellIntegration/pythonStartup.test.ts index 41388fc331c8..5d25c2563cf9 100644 --- a/src/test/terminals/shellIntegration/pythonStartup.test.ts +++ b/src/test/terminals/shellIntegration/pythonStartup.test.ts @@ -54,7 +54,7 @@ suite('Terminal - Shell Integration with PYTHONSTARTUP', () => { }); test('Verify createDirectory is called when shell integration is enabled', async () => { - pythonConfig.setup((p) => p.get('REPL.enableShellIntegration')).returns(() => true); + pythonConfig.setup((p) => p.get('terminal.shellIntegration.enabled')).returns(() => true); await registerPythonStartup(context.object); @@ -62,7 +62,7 @@ suite('Terminal - Shell Integration with PYTHONSTARTUP', () => { }); test('Verify createDirectory is not called when shell integration is disabled', async () => { - pythonConfig.setup((p) => p.get('REPL.enableShellIntegration')).returns(() => false); + pythonConfig.setup((p) => p.get('terminal.shellIntegration.enabled')).returns(() => false); await registerPythonStartup(context.object); @@ -70,7 +70,7 @@ suite('Terminal - Shell Integration with PYTHONSTARTUP', () => { }); test('Verify copy is called when shell integration is enabled', async () => { - pythonConfig.setup((p) => p.get('REPL.enableShellIntegration')).returns(() => true); + pythonConfig.setup((p) => p.get('terminal.shellIntegration.enabled')).returns(() => true); await registerPythonStartup(context.object); @@ -78,7 +78,7 @@ suite('Terminal - Shell Integration with PYTHONSTARTUP', () => { }); test('Verify copy is not called when shell integration is disabled', async () => { - pythonConfig.setup((p) => p.get('REPL.enableShellIntegration')).returns(() => false); + pythonConfig.setup((p) => p.get('terminal.shellIntegration.enabled')).returns(() => false); await registerPythonStartup(context.object); @@ -86,7 +86,7 @@ suite('Terminal - Shell Integration with PYTHONSTARTUP', () => { }); test('PYTHONSTARTUP is set when enableShellIntegration setting is true', async () => { - pythonConfig.setup((p) => p.get('REPL.enableShellIntegration')).returns(() => true); + pythonConfig.setup((p) => p.get('terminal.shellIntegration.enabled')).returns(() => true); await registerPythonStartup(context.object); @@ -97,7 +97,7 @@ suite('Terminal - Shell Integration with PYTHONSTARTUP', () => { }); test('environmentCollection should not remove PYTHONSTARTUP when enableShellIntegration setting is true', async () => { - pythonConfig.setup((p) => p.get('REPL.enableShellIntegration')).returns(() => true); + pythonConfig.setup((p) => p.get('terminal.shellIntegration.enabled')).returns(() => true); await registerPythonStartup(context.object); @@ -105,7 +105,7 @@ suite('Terminal - Shell Integration with PYTHONSTARTUP', () => { }); test('PYTHONSTARTUP is not set when enableShellIntegration setting is false', async () => { - pythonConfig.setup((p) => p.get('REPL.enableShellIntegration')).returns(() => false); + pythonConfig.setup((p) => p.get('terminal.shellIntegration.enabled')).returns(() => false); await registerPythonStartup(context.object); @@ -116,7 +116,7 @@ suite('Terminal - Shell Integration with PYTHONSTARTUP', () => { }); test('PYTHONSTARTUP is deleted when enableShellIntegration setting is false', async () => { - pythonConfig.setup((p) => p.get('REPL.enableShellIntegration')).returns(() => false); + pythonConfig.setup((p) => p.get('terminal.shellIntegration.enabled')).returns(() => false); await registerPythonStartup(context.object);