Add more unit tests for JupyterServerInstallation (#12675)

This commit is contained in:
Cory Rivera
2020-10-01 13:54:12 -07:00
committed by GitHub
parent 4965f3de1a
commit 9b7a1d7a26
3 changed files with 117 additions and 15 deletions

View File

@@ -55,7 +55,6 @@ export interface IJupyterServerInstallation {
uninstallPipPackages(packages: PythonPkgDetails[]): Promise<void>;
pythonExecutable: string;
pythonInstallationPath: string;
installPythonPackage(backgroundOperation: azdata.BackgroundOperation, usingExistingPython: boolean, pythonInstallationPath: string, outputChannel: vscode.OutputChannel): Promise<void>;
}
export class JupyterServerInstallation implements IJupyterServerInstallation {
public extensionPath: string;
@@ -160,7 +159,7 @@ export class JupyterServerInstallation implements IJupyterServerInstallation {
vscode.window.showInformationMessage(msgInstallPkgFinish);
}
public installPythonPackage(backgroundOperation: azdata.BackgroundOperation, usingExistingPython: boolean, pythonInstallationPath: string, outputChannel: vscode.OutputChannel): Promise<void> {
private installPythonPackage(backgroundOperation: azdata.BackgroundOperation, usingExistingPython: boolean, pythonInstallationPath: string, outputChannel: vscode.OutputChannel): Promise<void> {
if (usingExistingPython) {
return Promise.resolve();
}