Commit Graph

26 Commits

Author SHA1 Message Date
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 7159f60823 fixed bug in cli where no transcript could be retrieved if no language was specified 2019-12-31 00:11:52 +01:00
Jonas Depoix f8416ab004 added new params to cli to make new features accessible using the cli 2019-12-30 17:36:48 +01: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
Jonas Depoix 3d199e1b66 updated test assets to new youtube format 2019-10-09 13:27:51 +02:00
Jonas Depoix c65cf27def fixed bug reported in ISSUE-19 2019-07-22 13:11:52 +02:00
jdepoix f9d7d337f4
Merge pull request #10 from DannyAziz/master
Add proxy functionality
2019-03-27 11:07:36 +01:00
Danny Aziz d6d301a612 Run proxies test 2019-03-26 17:32:28 +00:00
Danny Aziz 7eb9e38eb6 Added more proxies tests 2019-03-20 17:06:05 +00: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 1550913334 removed redundant test assets 2019-03-16 13:31:49 +01:00
Jonas Depoix 4a564743df changed testing assets naming to not mess with GitHub stats 2019-03-14 18:46:46 +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