mirror of
				https://git.mirrors.martin98.com/https://github.com/actions/setup-python
				synced 2025-10-31 13:41:06 +08:00 
			
		
		
		
	Set fallback location in tests
This commit is contained in:
		
							parent
							
								
									ee2b5c67ae
								
							
						
					
					
						commit
						d9226ca4fd
					
				| @ -31,11 +31,11 @@ import * as finder from '../src/find-python'; | |||||||
| 
 | 
 | ||||||
| describe('Finder tests', () => { | describe('Finder tests', () => { | ||||||
|   it('Finds Python if it is installed', async () => { |   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); |     await io.mkdirP(pythonDir); | ||||||
|     fs.writeFileSync(`${pythonDir}.complete`, 'hello'); |     fs.writeFileSync(`${pythonDir}.complete`, 'hello'); | ||||||
|     // This will throw if it doesn't find it in the cache (because no such version exists)
 |     // 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 () => { |   it('Errors if Python is not installed', async () => { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Danny McCormick
						Danny McCormick