GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fixed test to resolve settings before comparing · millin/pythonVSCode@e2869f7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/test
    • extension.common.configSettings.test.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/test/extension.common.configSettings.test.ts‎

Copy file name to clipboardExpand all lines: src/test/extension.common.configSettings.test.ts
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import * as assert from 'assert';
1212
// as well as import your extension to test it
1313
import * as vscode from 'vscode';
1414
import { PythonSettings } from '../client/common/configSettings';
15+
import { SystemVariables } from '../client/common/systemVariables';
1516

1617
const pythonSettings = PythonSettings.getInstance();
1718

@@ -22,12 +23,16 @@ suite('Configuration Settings', () => {
2223
});
2324
if (!IS_TRAVIS) {
2425
test('Check Values', done => {
26+
const systemVariables: SystemVariables = new SystemVariables();
2527
const pythonConfig = vscode.workspace.getConfiguration('python');
2628
Object.keys(pythonSettings).forEach(key => {
27-
const settingValue = pythonConfig.get(key, 'Not a config');
29+
let settingValue = pythonConfig.get(key, 'Not a config');
2830
if (settingValue === 'Not a config') {
2931
return;
3032
}
33+
if (typeof settingValue === 'object' && settingValue !== null) {
34+
settingValue = systemVariables.resolve(settingValue);
35+
}
3136
assert.deepEqual(settingValue, pythonSettings[key], `Setting ${key} not the same`);
3237
});
3338

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.