mock added to requirements to support 2.7
This commit is contained in:
		
							parent
							
								
									80c1e0aa23
								
							
						
					
					
						commit
						444998c02b
					
				|  | @ -1,5 +1,10 @@ | ||||||
| # YouTube Transcript/Subtitle API (including automatically generated subtitles) | # YouTube Transcript/Subtitle API (including automatically generated subtitles) | ||||||
| 
 | 
 | ||||||
|  | [](https://travis-ci.org/jdepoix/youtube-transcript-api) | ||||||
|  | [ | ||||||
|  | [](https://pypi.org/project/youtube-transcript-api/) | ||||||
|  | [](https://pypi.org/project/youtube-transcript-api/) | ||||||
|  | 
 | ||||||
| This is an python API which allows you to get the transcripts/subtitles for a given YouTube video. It also works for automatically generated subtitles and it does not require a headless browser, like other selenium based solutions do! | This is an python API which allows you to get the transcripts/subtitles for a given YouTube video. It also works for automatically generated subtitles and it does not require a headless browser, like other selenium based solutions do! | ||||||
| 
 | 
 | ||||||
| ## Install | ## Install | ||||||
|  |  | ||||||
|  | @ -1,5 +1,6 @@ | ||||||
| requests | requests | ||||||
| 
 | 
 | ||||||
| # testing | # testing | ||||||
|  | mock | ||||||
| httpretty | httpretty | ||||||
| coverage | coverage | ||||||
							
								
								
									
										1
									
								
								setup.py
								
								
								
								
							
							
						
						
									
										1
									
								
								setup.py
								
								
								
								
							|  | @ -43,6 +43,7 @@ setuptools.setup( | ||||||
|         'requests', |         'requests', | ||||||
|     ], |     ], | ||||||
|     tests_require=[ |     tests_require=[ | ||||||
|  |         'mock', | ||||||
|         'httpretty', |         'httpretty', | ||||||
|         'coverage', |         'coverage', | ||||||
|     ], |     ], | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| from unittest import TestCase | from unittest import TestCase | ||||||
| from unittest.mock import MagicMock | from mock import MagicMock | ||||||
| 
 | 
 | ||||||
| import os | import os | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| from unittest import TestCase | from unittest import TestCase | ||||||
| from unittest.mock import MagicMock | from mock import MagicMock | ||||||
| 
 | 
 | ||||||
| import json | import json | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue