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

tests.conftest.valid_youtube_videos()   A

Complexity

Conditions 1

Size

Total Lines 15
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
nop 0
dl 0
loc 15
rs 10
c 0
b 0
f 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)'),
20
    }}
21