diff --git a/src/test/linters/lint.args.test.ts b/src/test/linters/lint.args.test.ts index d922c416b40f..b4f1982a844c 100644 --- a/src/test/linters/lint.args.test.ts +++ b/src/test/linters/lint.args.test.ts @@ -137,7 +137,8 @@ suite('Linting - Arguments', () => { }); test('MyPy', async () => { const linter = new MyPy(outputChannel.object, serviceContainer); - const expectedArgs = [fileUri.fsPath]; + const expectedPath = workspaceUri ? path.join(path.basename(path.dirname(fileUri.fsPath)), path.basename(fileUri.fsPath)) : path.basename(fileUri.fsPath); + const expectedArgs = [expectedPath]; await testLinter(linter, expectedArgs); }); test('Pydocstyle', async () => {