docstring + travis
Browse files- .travis.yml +1 -1
- pytube/cli.py +5 -0
.travis.yml
CHANGED
@@ -15,7 +15,7 @@ install:
|
|
15 |
- pip install -r requirements.txt
|
16 |
- pip install -r tests/requirements.txt
|
17 |
before_script: flake8
|
18 |
-
script: pytest
|
19 |
sudo: required
|
20 |
after_success:
|
21 |
coveralls
|
|
|
15 |
- pip install -r requirements.txt
|
16 |
- pip install -r tests/requirements.txt
|
17 |
before_script: flake8
|
18 |
+
script: pytest --cov-report term-missing --cov=pytube
|
19 |
sudo: required
|
20 |
after_success:
|
21 |
coveralls
|
pytube/cli.py
CHANGED
@@ -43,6 +43,11 @@ def main():
|
|
43 |
|
44 |
|
45 |
def build_debug_report(url):
|
|
|
|
|
|
|
|
|
|
|
46 |
yt = YouTube(url)
|
47 |
fp = os.path.join(
|
48 |
os.getcwd(),
|
|
|
43 |
|
44 |
|
45 |
def build_debug_report(url):
|
46 |
+
"""Serialize the request data to json for offline debugging.
|
47 |
+
|
48 |
+
:param str url:
|
49 |
+
A valid YouTube watch URL.
|
50 |
+
"""
|
51 |
yt = YouTube(url)
|
52 |
fp = os.path.join(
|
53 |
os.getcwd(),
|