Test Failed
Push — dev ( 5fda06...071855 )
by Konstantinos
04:51
created

tests.conftest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A valid_youtube_videos() 0 15 1
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)'),
20
    }}
21