Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 793acf1

Browse files
author
Mikhail Arkhipov
authored
Fix test in CI (microsoft#13368)
* Fix path * Actually fix settings * Add news * Add test * Format * Suppress 'jediEnabled' removal * Drop survey first launch threshold * Fix CI test
1 parent 7e62824 commit 793acf1

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/test/linters/lint.multilinter.test.ts

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
3+
34
'use strict';
45

56
import * as assert from 'assert';
@@ -21,9 +22,10 @@ const pythoFilesPath = path.join(__dirname, '..', '..', '..', 'src', 'test', 'py
2122
// Mocked out python tool execution (all we need is mocked linter return values).
2223
class MockPythonToolExecService extends PythonToolExecutionService {
2324
// Mocked samples of linter messages from flake8 and pylint:
24-
public flake8Msg: string =
25+
public flake8Msg =
2526
'1,1,W,W391:blank line at end of file\ns:142:13), <anonymous>:1\n1,7,E,E999:SyntaxError: invalid syntax\n';
26-
public pylintMsg: string =
27+
28+
public pylintMsg =
2729
"************* Module print\ns:142:13), <anonymous>:1\n1,0,error,syntax-error:Missing parentheses in call to 'print'. Did you mean print(x)? (<unknown>, line 1)\n";
2830

2931
// Depending on moduleName being exec'd, return the appropriate sample.
@@ -88,16 +90,16 @@ suite('Linting - Multiple Linters Enabled Test', () => {
8890
return `linting.${linterManager.getLinterInfo(product).enabledSettingName}` as PythonSettingKeys;
8991
}
9092

91-
test('Multiple linters', async function () {
92-
// This test is failing in the CI. See this issue here:
93-
// https://github.com/microsoft/vscode-python/issues/13345
94-
// tslint:disable-next-line: no-invalid-this
95-
this.skip();
96-
93+
test('Multiple linters', async () => {
9794
await closeActiveWindows();
9895
const document = await workspace.openTextDocument(path.join(pythoFilesPath, 'print.py'));
9996
await window.showTextDocument(document);
100-
await configService.updateSetting('languageServer', LanguageServerType.Jedi, workspaceUri);
97+
await configService.updateSetting(
98+
'languageServer',
99+
LanguageServerType.Jedi,
100+
undefined,
101+
ConfigurationTarget.Workspace
102+
);
101103
await configService.updateSetting('linting.enabled', true, workspaceUri);
102104
await configService.updateSetting('linting.pylintUseMinimalCheckers', false, workspaceUri);
103105
await configService.updateSetting('linting.pylintEnabled', true, workspaceUri);

0 commit comments

Comments
 (0)