Skip to content

Commit be977aa

Browse files
committed
add docstrings
1 parent 6db0448 commit be977aa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/commands/test_video_livechat.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99

1010
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+
"""
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

3236
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+
"""
3341
youtube_mock = mocker.patch("youtool.commands.video_livechat.YouTube")
3442
video_id = "video_id_mock"
3543

0 commit comments

Comments
 (0)