Skip to content

Commit

Permalink
fix path to match desired
Browse files Browse the repository at this point in the history
  • Loading branch information
eleanorjboyd committed Nov 12, 2024
1 parent d3f94b4 commit 07026d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/unittest/adapter/factory.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ suite('Debugging - Adapter Factory', () => {

const nodeExecutable = undefined;
const debugAdapterPath = path.join(EXTENSION_ROOT_DIR, 'bundled', 'libs', 'debugpy', 'adapter');
const pythonPath = path.join('path', 'to', 'python', 'interpreter');
const pythonPath = 'path/to/python/interpreter';
const interpreter = {
architecture: Architecture.Unknown,
path: pythonPath,
Expand Down Expand Up @@ -292,9 +292,9 @@ suite('Debugging - Adapter Factory', () => {
assert.deepStrictEqual(descriptor, debugExecutable);
});
test('Add quotes to interpreter path with spaces', async () => {
const customAdapterPath = path.join('custom', 'debug', 'adapter', 'customAdapterPath');
const customAdapterPath = 'custom/debug/adapter/customAdapterPath';
const session = createSession({ debugAdapterPath: customAdapterPath });
const interpreterPathSpaces = path.join('path', 'to', 'python interpreter with spaces');
const interpreterPathSpaces = 'path/to/python interpreter with spaces';
const interpreterPathSpacesQuoted = `"${interpreterPathSpaces}"`;
const debugExecutable = new DebugAdapterExecutable(interpreterPathSpacesQuoted, [customAdapterPath]);

Expand Down

0 comments on commit 07026d3

Please sign in to comment.