Skip to content

Commit 128d379

Browse files
author
Kartik Raj
committed
Added tests
1 parent 91a97e1 commit 128d379

File tree

3 files changed

+624
-3
lines changed

3 files changed

+624
-3
lines changed

src/client/linters/pylint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class Pylint extends BaseLinter {
7676
];
7777
const messages = await this.run(minArgs.concat(args), document, cancellation, REGEX);
7878
messages.forEach(msg => {
79-
msg.severity = this.parseMessagesSeverity(msg.type, this.pythonSettings.linting.pylintCategorySeverity);
79+
msg.severity = this.parseMessagesSeverity(msg.type, settings.linting.pylintCategorySeverity);
8080
});
8181

8282
return messages;

src/test/application/diagnostics/applicationDiagnostics.unit.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ suite('Application Diagnostics - ApplicationDiagnostics', () => {
3434
const oldValueOfVSC_PYTHON_CI_TEST = process.env.VSC_PYTHON_CI_TEST;
3535

3636
setup(() => {
37-
process.env.VSC_PYTHON_UNIT_TEST = undefined;
38-
process.env.VSC_PYTHON_CI_TEST = undefined;
37+
delete process.env.VSC_PYTHON_UNIT_TEST;
38+
delete process.env.VSC_PYTHON_CI_TEST;
3939
serviceContainer = typemoq.Mock.ofType<IServiceContainer>();
4040
envHealthCheck = typemoq.Mock.ofType<IDiagnosticsService>();
4141
envHealthCheck.setup(service => service.runInBackground).returns(() => true);

0 commit comments

Comments
 (0)