Total Complexity | 1 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | import pytest |
||
2 | |||
3 | |||
4 | @pytest.fixture |
||
5 | def valid_youtube_videos(): |
||
6 | """Youtube video urls and their expected mp3 name to be 'downloaded'. |
||
7 | |||
8 | Note: |
||
9 | Maintain this fixture in cases such as a youtube video title changing |
||
10 | over time, or a youtube url ceasing to exist. |
||
11 | |||
12 | Returns: |
||
13 | [type]: [description] |
||
14 | """ |
||
15 | from collections import namedtuple |
||
16 | YoutubeVideo = namedtuple('YoutubeVideo', ['url', 'video_title']) |
||
17 | return {YoutubeVideo(url, video_title) for url, video_title in { |
||
18 | ('https://www.youtube.com/watch?v=jJkF3I5cBAc', '10 seconds countdown (video test)'), |
||
19 | # ('https://www.youtube.com/watch?v=Q3dvbM6Pias', 'Rage Against The Machine - Testify (Official HD Video)'), |
||
21 |