fixed tests
Browse files- tests/test_playlist.py +6 -5
tests/test_playlist.py
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
# -*- coding: utf-8 -*-
|
2 |
-
from pytube import
|
|
|
3 |
|
4 |
|
5 |
def test_construct():
|
6 |
-
ob =
|
7 |
'https://www.youtube.com/watch?v=m5q2GCsteQs&list='
|
8 |
'PL525f8ds9RvsXDl44X6Wwh9t3fCzFNApw',
|
9 |
)
|
@@ -15,7 +16,7 @@ def test_construct():
|
|
15 |
|
16 |
|
17 |
def test_link_parse():
|
18 |
-
ob =
|
19 |
'https://www.youtube.com/watch?v=m5q2GCsteQs&list='
|
20 |
'PL525f8ds9RvsXDl44X6Wwh9t3fCzFNApw',
|
21 |
)
|
@@ -29,7 +30,7 @@ def test_link_parse():
|
|
29 |
|
30 |
|
31 |
def test_populate():
|
32 |
-
ob =
|
33 |
'https://www.youtube.com/watch?v=m5q2GCsteQs&list='
|
34 |
'PL525f8ds9RvsXDl44X6Wwh9t3fCzFNApw',
|
35 |
)
|
@@ -44,7 +45,7 @@ def test_populate():
|
|
44 |
|
45 |
|
46 |
def test_download():
|
47 |
-
ob =
|
48 |
'https://www.youtube.com/watch?v=lByG_AgKS9k&list='
|
49 |
'PL525f8ds9RvuerPZ3bZygmNiYw2sP4BDk',
|
50 |
)
|
|
|
1 |
# -*- coding: utf-8 -*-
|
2 |
+
from pytube import Playlist
|
3 |
+
|
4 |
|
5 |
|
6 |
def test_construct():
|
7 |
+
ob = Playlist(
|
8 |
'https://www.youtube.com/watch?v=m5q2GCsteQs&list='
|
9 |
'PL525f8ds9RvsXDl44X6Wwh9t3fCzFNApw',
|
10 |
)
|
|
|
16 |
|
17 |
|
18 |
def test_link_parse():
|
19 |
+
ob = Playlist(
|
20 |
'https://www.youtube.com/watch?v=m5q2GCsteQs&list='
|
21 |
'PL525f8ds9RvsXDl44X6Wwh9t3fCzFNApw',
|
22 |
)
|
|
|
30 |
|
31 |
|
32 |
def test_populate():
|
33 |
+
ob = Playlist(
|
34 |
'https://www.youtube.com/watch?v=m5q2GCsteQs&list='
|
35 |
'PL525f8ds9RvsXDl44X6Wwh9t3fCzFNApw',
|
36 |
)
|
|
|
45 |
|
46 |
|
47 |
def test_download():
|
48 |
+
ob = Playlist(
|
49 |
'https://www.youtube.com/watch?v=lByG_AgKS9k&list='
|
50 |
'PL525f8ds9RvuerPZ3bZygmNiYw2sP4BDk',
|
51 |
)
|