itag test coverage
Browse files- tests/test_itags.py +12 -0
- tests/test_streams.py +0 -0
tests/test_itags.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# -*- coding: utf-8 -*-
|
2 |
+
from pytube import itags
|
3 |
+
|
4 |
+
|
5 |
+
def test_get_format_profile():
|
6 |
+
profile = itags.get_format_profile(22)
|
7 |
+
assert profile['resolution'] == '720p'
|
8 |
+
|
9 |
+
|
10 |
+
def test_get_format_profile_non_existant():
|
11 |
+
profile = itags.get_format_profile(2239)
|
12 |
+
assert profile['resolution'] is None
|
tests/test_streams.py
ADDED
File without changes
|