File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 88
99
1010def test_video_livechat (mocker ):
11+ """Test case for fetching live chat messages from a YouTube video.
12+
13+ Mocks the YouTube API to return expected live chat messages and verifies if the execute method correctly formats and returns the data.
14+ """
1115 youtube_mock = mocker .patch ("youtool.commands.video_livechat.YouTube" )
1216 video_id = "video_id_mock"
1317
@@ -30,6 +34,10 @@ def test_video_livechat(mocker):
3034
3135
3236def test_video_livechat_with_file_output (mocker , tmp_path ):
37+ """Test case for fetching live chat messages from a YouTube video and saving them to a CSV file.
38+
39+ Mocks the YouTube API to return expected live chat messages and verifies if the execute method correctly saves the data to a CSV file.
40+ """
3341 youtube_mock = mocker .patch ("youtool.commands.video_livechat.YouTube" )
3442 video_id = "video_id_mock"
3543
You can’t perform that action at this time.
0 commit comments