File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,7 @@ def test_filter_fields():
3131 assert filtered_info == expected_result , f"Expected { expected_result } , but got { filtered_info } "
3232
3333
34- def test_channel_ids_from_urls_and_usernames (mocker ):
35- urls = ["https://www.youtube.com/@Turicas/featured" , "https://www.youtube.com/c/PythonicCaf%C3%A9" ]
36- usernames = ["Turicas" , "PythonicCafe" ]
37-
34+ def test_channel_ids_from_urls_and_usernames (mocker , channels_urls , usernames ):
3835 ids_from_urls_mock = "id_from_url"
3936 ids_from_usernames_mock = "id_from_username"
4037 youtube_mock = mocker .patch ("youtool.commands.channel_info.YouTube" )
@@ -47,10 +44,10 @@ def test_channel_ids_from_urls_and_usernames(mocker):
4744 youtube_mock .return_value .channel_id_from_username = channel_id_from_username_mock
4845 youtube_mock .return_value .channels_infos = channels_infos_mock
4946
50- ChannelInfo .execute (urls = urls , usernames = usernames )
47+ ChannelInfo .execute (urls = channels_urls , usernames = usernames )
5148
5249 channel_id_from_url_mock .assert_has_calls (
53- [call (url ) for url in urls ]
50+ [call (url ) for url in channels_urls ]
5451 )
5552 channel_id_from_username_mock .assert_has_calls (
5653 [call (username ) for username in usernames ]
You can’t perform that action at this time.
0 commit comments