youtube-transcript-api/youtube_transcript_api
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
..
test Update test_api.py 2020-07-08 15:11:54 -07:00
__init__.py Redid errors for cookies, improved testing coverage 2020-01-30 21:53:18 -08:00
__main__.py test suite and corresponding tooling added 2019-03-14 17:04:34 +01:00
_api.py Redid errors for cookies, improved testing coverage 2020-01-30 21:53:18 -08:00
_cli.py Added cli support, fixed testing 2020-01-20 23:04:46 -08:00
_errors.py Redid errors for cookies, improved testing coverage 2020-01-30 21:53:18 -08:00
_html_unescaping.py test suite and corresponding tooling added 2019-03-14 17:04:34 +01:00
_settings.py refactored the way transcript information is retrieved and thereby improved error messages 2019-12-08 14:40:57 +01:00
_transcripts.py added public list_transcripts method 2019-12-30 15:20:47 +01:00
formatters.py Add formatters module 2020-07-08 15:05:17 -07:00