Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Jul 14, 2022
1 parent 8883650 commit 3dfe772
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { startJupyterServer } from '../../common';
import { IS_REMOTE_NATIVE_TEST } from '../../constants';
import { initialize } from '../../initialize';

suite('DataScience - Kernel Process', () => {
suite('DataScience - Interpreter Packages', () => {
let packages: IInterpreterPackages;
suiteSetup(async function () {
if (IS_REMOTE_NATIVE_TEST() || isWeb()) {
Expand All @@ -20,13 +20,12 @@ suite('DataScience - Kernel Process', () => {
packages = api.serviceContainer.get<IInterpreterPackages>(IInterpreterPackages);
await startJupyterServer();
});
test.only('Returns installed modules', async function () {
test('Returns installed modules', async function () {
const uri = workspace.workspaceFolders?.length ? workspace.workspaceFolders[0].uri : undefined;
const installedModules = new Set((await packages.listPackages(uri)).map((item) => item.toLowerCase()));

assert.isTrue(installedModules.has('xml'));
assert.isTrue(installedModules.has('os'));
assert.isTrue(installedModules.has('sys'));
assert.isTrue(installedModules.has('random'));

assert.isTrue(installedModules.has('ipykernel')); // Installed on CI
Expand Down

0 comments on commit 3dfe772

Please sign in to comment.