1
0
Fork 0
mirror of https://github.com/actions/setup-python.git synced 2024-11-22 06:26:25 +00:00
setup-python/__tests__/finder.test.ts

41 lines
863 B
TypeScript
Raw Normal View History

2019-06-27 01:12:00 +00:00
import io = require('@actions/io');
import fs = require('fs');
import os = require('os');
import path = require('path');
const toolDir = path.join(
process.cwd(),
'runner',
path.join(
Math.random()
.toString(36)
.substring(7)
),
'tools'
);
const tempDir = path.join(
process.cwd(),
'runner',
path.join(
Math.random()
.toString(36)
.substring(7)
),
'temp'
);
process.env['RUNNER_TOOLSDIRECTORY'] = toolDir;
process.env['RUNNER_TEMPDIRECTORY'] = tempDir;
import * as finder from '../src/find-python';
describe('Finder tests', () => {
it('Finds Python if it is installed', async () => {});
it('Errors if Python is not installed', async () => {});
it('Finds PyPy if it is installed', async () => {});
it('Errors if PyPy is not installed', async () => {});
});