Set fallback location in tests

This commit is contained in:
Danny McCormick 2019-07-11 17:00:39 -04:00
parent ee2b5c67ae
commit d9226ca4fd

View File

@ -31,11 +31,11 @@ import * as finder from '../src/find-python';
describe('Finder tests', () => {
it('Finds Python if it is installed', async () => {
const pythonDir: string = path.join(toolDir, 'python', '2.0.0', 'x64');
const pythonDir: string = path.join(toolDir, 'python', '3.0.0', 'x64');
await io.mkdirP(pythonDir);
fs.writeFileSync(`${pythonDir}.complete`, 'hello');
// This will throw if it doesn't find it in the cache (because no such version exists)
await finder.findPythonVersion('2.x', 'x64');
await finder.findPythonVersion('3.x', 'x64');
});
it('Errors if Python is not installed', async () => {