youtube-transcript-api/youtube_transcript_api/test
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
..
assets added check if any transcripts are actually available 2019-12-20 16:28:35 +01:00
__init__.py test suite and corresponding tooling added 2019-03-14 17:04:34 +01:00
example_cookies.txt Fixed testing with mock, added testing for cookies 2020-01-27 21:47:04 -08:00
expired_example_cookies.txt Fixed testing with mock, added testing for cookies 2020-01-27 21:47:04 -08:00
test_api.py Update test_api.py 2020-07-08 15:11:54 -07:00
test_cli.py Added cli support, fixed testing 2020-01-20 23:04:46 -08:00