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) | ||||
| 
 | ||||
| [](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! | ||||
| 
 | ||||
| ## Install | ||||
|  |  | |||
|  | @ -1,5 +1,6 @@ | |||
| requests | ||||
| 
 | ||||
| # testing | ||||
| mock | ||||
| httpretty | ||||
| coverage | ||||
							
								
								
									
										1
									
								
								setup.py
								
								
								
								
							
							
						
						
									
										1
									
								
								setup.py
								
								
								
								
							|  | @ -43,6 +43,7 @@ setuptools.setup( | |||
|         'requests', | ||||
|     ], | ||||
|     tests_require=[ | ||||
|         'mock', | ||||
|         'httpretty', | ||||
|         'coverage', | ||||
|     ], | ||||
|  |  | |||
|  | @ -1,5 +1,5 @@ | |||
| from unittest import TestCase | ||||
| from unittest.mock import MagicMock | ||||
| from mock import MagicMock | ||||
| 
 | ||||
| import os | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,5 +1,5 @@ | |||
| from unittest import TestCase | ||||
| from unittest.mock import MagicMock | ||||
| from mock import MagicMock | ||||
| 
 | ||||
| import json | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue