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 8
8
9
9
10
10
def 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
+ """
11
15
youtube_mock = mocker .patch ("youtool.commands.video_livechat.YouTube" )
12
16
video_id = "video_id_mock"
13
17
@@ -30,6 +34,10 @@ def test_video_livechat(mocker):
30
34
31
35
32
36
def 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
+ """
33
41
youtube_mock = mocker .patch ("youtool.commands.video_livechat.YouTube" )
34
42
video_id = "video_id_mock"
35
43
You can’t perform that action at this time.
0 commit comments