mirror of
https://github.com/actions/setup-python.git
synced 2025-06-28 05:33:47 +00:00
Merge 86322ff86a
into e9c40fbc2b
This commit is contained in:
commit
76ac4abd3c
5 changed files with 70 additions and 4 deletions
|
@ -244,6 +244,18 @@ describe('Version from file test', () => {
|
|||
expect(_fn(toolVersionFilePath)).toEqual(['3.14t-dev']);
|
||||
}
|
||||
);
|
||||
|
||||
it.each([getVersionInputFromTomlFile, getVersionInputFromFile])(
|
||||
'Version from mise.toml',
|
||||
async _fn => {
|
||||
await io.mkdirP(tempDir);
|
||||
const filePath = path.join(tempDir, 'mise.toml');
|
||||
const pythonVersion = '3.8.0';
|
||||
const fileContent = `[tools]\npython = "${pythonVersion}"`;
|
||||
fs.writeFileSync(filePath, fileContent);
|
||||
expect(_fn(filePath)).toEqual([pythonVersion]);
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
describe('getNextPageUrl', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue