|
@@ -10,7 +10,14 @@ describe('DebugSession', () => {
|
|
|
let client: IClientSession;
|
|
|
|
|
|
beforeEach(async () => {
|
|
|
- client = await createClientSession();
|
|
|
+ client = await createClientSession({
|
|
|
+ kernelPreference: {
|
|
|
+ name: 'python3', // TODO: replace by xpython
|
|
|
+ language: 'python',
|
|
|
+ shouldStart: true,
|
|
|
+ canStart: true
|
|
|
+ }
|
|
|
+ });
|
|
|
await (client as ClientSession).initialize();
|
|
|
await client.kernel.ready;
|
|
|
});
|
|
@@ -27,4 +34,11 @@ describe('DebugSession', () => {
|
|
|
expect(debugSession.isDisposed).to.equal(true);
|
|
|
});
|
|
|
});
|
|
|
+
|
|
|
+ describe('#start()', () => {
|
|
|
+ it('should start a new debug session', async () => {
|
|
|
+ const debugSession = new DebugSession({ client });
|
|
|
+ await debugSession.start();
|
|
|
+ });
|
|
|
+ });
|
|
|
});
|