Add tests for Jupyter Session (#11961)

* add tests for config kernel and connection

* move sinon.restore and fix config filepath
This commit is contained in:
Lucy Zhang
2020-08-25 18:59:53 -07:00
committed by GitHub
parent 15017917b3
commit a3121c0b2d
2 changed files with 143 additions and 4 deletions

View File

@@ -318,7 +318,6 @@ export class JupyterSession implements nb.ISession {
if (this.isIntegratedAuth(connectionProfile)) {
doNotCallChangeEndpointParams = `%_do_not_call_change_endpoint --server=${server} --auth=Kerberos`;
} else {
doNotCallChangeEndpointParams = `%_do_not_call_change_endpoint --username=${connectionProfile.options[USER]} --password=${credentials.password} --server=${server} --auth=Basic_Access`;
}
let future = this.sessionImpl.kernel.requestExecute({