Chris Howell
5861bdb104
Remove json.dumps from test_api.py
...
Remove unnecessary changes to tests, revert assertions back to how they were.
Remove unnecessary join from formatter in `_api.py`
2020-07-09 00:06:14 -07:00
Chris Howell
ac75f906e6
Update test_api.py
...
Fixed an encoding issue for Windows machines receiving an error due to Lines 24-27:
`UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 119434: character maps to <undefined>`.
Adjusted test_api.py to fix an issue when the format=None isnt passed with mock test raising:
`AssertionError: get_transcript('video_id_1', ['de', 'en'], None, None) call not found`
Added `import json` to convert test data for json data into a string for 1 or many json transcripts to keep in line with how the formatters are eventually returned as strings.
2020-07-08 15:11:54 -07:00
danielcliu
31b8f4a179
Redid errors for cookies, improved testing coverage
2020-01-30 21:53:18 -08:00
danielcliu
49ccba7f95
Fixed testing with mock, added testing for cookies
2020-01-27 21:47:04 -08:00
danielcliu
67604ec46c
Made testing more robust
2020-01-22 22:35:35 -08:00
danielcliu
f9e553ebaf
Added cli support, fixed testing
2020-01-20 23:04:46 -08:00
Jonas Depoix
66d02c08a1
added tests for new public api method
2019-12-30 15:34:35 +01:00
Jonas Depoix
f1e4754ca4
added check if any transcripts are actually available
2019-12-20 16:28:35 +01:00
Jonas Depoix
df417be915
refactored the way transcript information is retrieved and thereby improved error messages
2019-12-08 14:40:57 +01:00
danielcliu
d224b02a80
Languages argument defaults to a tuple instead of a list.
2019-11-10 22:44:24 -08:00
danielcliu
7ac7d3266b
Changed youtubeWWW1.html.static's name
2019-11-06 21:19:24 -08:00
danielcliu
de1ddf0824
Implemented code to more thoroughly find a lanuages captions
2019-10-16 22:01:30 -07:00
jdepoix
f9d7d337f4
Merge pull request #10 from DannyAziz/master
...
Add proxy functionality
2019-03-27 11:07:36 +01:00
Danny Aziz
2b8f213f3d
Removed _TranscriptFetcher
2019-03-19 14:15:01 +00:00
Danny Aziz
a9270f67fd
Refactored Tests
2019-03-19 13:34:17 +00:00
Danny Aziz
86cd1666c0
Rebased on PR #11 and added tests
2019-03-16 16:23:42 +00:00
Jonas Depoix
2f239b4a4c
fixed build
2019-03-16 13:35:15 +01:00
Jonas Depoix
444998c02b
mock added to requirements to support 2.7
2019-03-14 17:26:52 +01:00
Jonas Depoix
94e4e4063f
test suite and corresponding tooling added
2019-03-14 17:04:34 +01:00