version bump
Browse files- pytube/version.py +1 -1
- tests/test_main.py +2 -2
pytube/version.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
__version__ = "9.5.
|
2 |
|
3 |
if __name__ == "__main__":
|
4 |
print(__version__)
|
|
|
1 |
+
__version__ = "9.5.9"
|
2 |
|
3 |
if __name__ == "__main__":
|
4 |
print(__version__)
|
tests/test_main.py
CHANGED
@@ -8,8 +8,8 @@ from pytube.exceptions import VideoUnavailable
|
|
8 |
|
9 |
|
10 |
@mock.patch("pytube.__main__.YouTube")
|
11 |
-
def test_prefetch_deferred(
|
12 |
-
instance =
|
13 |
instance.prefetch_descramble.return_value = None
|
14 |
YouTube("https://www.youtube.com/watch?v=9bZkp7q19f0", True)
|
15 |
assert not instance.prefetch_descramble.called
|
|
|
8 |
|
9 |
|
10 |
@mock.patch("pytube.__main__.YouTube")
|
11 |
+
def test_prefetch_deferred(youtube):
|
12 |
+
instance = youtube.return_value
|
13 |
instance.prefetch_descramble.return_value = None
|
14 |
YouTube("https://www.youtube.com/watch?v=9bZkp7q19f0", True)
|
15 |
assert not instance.prefetch_descramble.called
|