fixed tests
Browse files- Pipfile +2 -0
- Pipfile.lock +37 -14
- tests/test_streams.py +1 -0
Pipfile
CHANGED
@@ -9,6 +9,8 @@ name = "pypi"
|
|
9 |
"flake8" = "*"
|
10 |
pytest = "*"
|
11 |
coveralls = "*"
|
|
|
|
|
12 |
|
13 |
[requires]
|
14 |
python_version = "3.6"
|
|
|
9 |
"flake8" = "*"
|
10 |
pytest = "*"
|
11 |
coveralls = "*"
|
12 |
+
mock = "*"
|
13 |
+
pytest-mock = "*"
|
14 |
|
15 |
[requires]
|
16 |
python_version = "3.6"
|
Pipfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
"_meta": {
|
3 |
"hash": {
|
4 |
-
"sha256": "
|
5 |
},
|
6 |
"pipfile-spec": 6,
|
7 |
"requires": {
|
@@ -19,18 +19,18 @@
|
|
19 |
"develop": {
|
20 |
"atomicwrites": {
|
21 |
"hashes": [
|
22 |
-
"sha256:
|
23 |
-
"sha256:
|
24 |
],
|
25 |
-
"markers": "python_version != '3.0.*' and python_version != '3.
|
26 |
-
"version": "==1.2.
|
27 |
},
|
28 |
"attrs": {
|
29 |
"hashes": [
|
30 |
-
"sha256:
|
31 |
-
"sha256:
|
32 |
],
|
33 |
-
"version": "==18.
|
34 |
},
|
35 |
"certifi": {
|
36 |
"hashes": [
|
@@ -84,11 +84,11 @@
|
|
84 |
},
|
85 |
"coveralls": {
|
86 |
"hashes": [
|
87 |
-
"sha256:
|
88 |
-
"sha256:
|
89 |
],
|
90 |
"index": "pypi",
|
91 |
-
"version": "==1.
|
92 |
},
|
93 |
"docopt": {
|
94 |
"hashes": [
|
@@ -118,6 +118,14 @@
|
|
118 |
],
|
119 |
"version": "==0.6.1"
|
120 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
"more-itertools": {
|
122 |
"hashes": [
|
123 |
"sha256:c187a73da93e7a8acc0001572aebc7e3c69daf7bf6881a2cea10650bd4420092",
|
@@ -126,6 +134,13 @@
|
|
126 |
],
|
127 |
"version": "==4.3.0"
|
128 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
"pluggy": {
|
130 |
"hashes": [
|
131 |
"sha256:6e3836e39f4d36ae72840833db137f7b7d35105079aee6ec4a62d9f80d594dd1",
|
@@ -158,11 +173,19 @@
|
|
158 |
},
|
159 |
"pytest": {
|
160 |
"hashes": [
|
161 |
-
"sha256:
|
162 |
-
"sha256:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
],
|
164 |
"index": "pypi",
|
165 |
-
"version": "==
|
166 |
},
|
167 |
"requests": {
|
168 |
"hashes": [
|
|
|
1 |
{
|
2 |
"_meta": {
|
3 |
"hash": {
|
4 |
+
"sha256": "e38db0357f0f71c79a3b300af332415da0047f81e85a1a7ed73bbc59a46d5d6d"
|
5 |
},
|
6 |
"pipfile-spec": 6,
|
7 |
"requires": {
|
|
|
19 |
"develop": {
|
20 |
"atomicwrites": {
|
21 |
"hashes": [
|
22 |
+
"sha256:0312ad34fcad8fac3704d441f7b317e50af620823353ec657a53e981f92920c0",
|
23 |
+
"sha256:ec9ae8adaae229e4f8446952d204a3e4b5fdd2d099f9be3aaf556120135fb3ee"
|
24 |
],
|
25 |
+
"markers": "python_version != '3.0.*' and python_version != '3.1.*' and python_version >= '2.7' and python_version != '3.2.*' and python_version != '3.3.*'",
|
26 |
+
"version": "==1.2.1"
|
27 |
},
|
28 |
"attrs": {
|
29 |
"hashes": [
|
30 |
+
"sha256:10cbf6e27dbce8c30807caf056c8eb50917e0eaafe86347671b57254006c3e69",
|
31 |
+
"sha256:ca4be454458f9dec299268d472aaa5a11f67a4ff70093396e1ceae9c76cf4bbb"
|
32 |
],
|
33 |
+
"version": "==18.2.0"
|
34 |
},
|
35 |
"certifi": {
|
36 |
"hashes": [
|
|
|
84 |
},
|
85 |
"coveralls": {
|
86 |
"hashes": [
|
87 |
+
"sha256:9dee67e78ec17b36c52b778247762851c8e19a893c9a14e921a2fc37f05fac22",
|
88 |
+
"sha256:aec5a1f5e34224b9089664a1b62217732381c7de361b6ed1b3c394d7187b352a"
|
89 |
],
|
90 |
"index": "pypi",
|
91 |
+
"version": "==1.5.0"
|
92 |
},
|
93 |
"docopt": {
|
94 |
"hashes": [
|
|
|
118 |
],
|
119 |
"version": "==0.6.1"
|
120 |
},
|
121 |
+
"mock": {
|
122 |
+
"hashes": [
|
123 |
+
"sha256:5ce3c71c5545b472da17b72268978914d0252980348636840bd34a00b5cc96c1",
|
124 |
+
"sha256:b158b6df76edd239b8208d481dc46b6afd45a846b7812ff0ce58971cf5bc8bba"
|
125 |
+
],
|
126 |
+
"index": "pypi",
|
127 |
+
"version": "==2.0.0"
|
128 |
+
},
|
129 |
"more-itertools": {
|
130 |
"hashes": [
|
131 |
"sha256:c187a73da93e7a8acc0001572aebc7e3c69daf7bf6881a2cea10650bd4420092",
|
|
|
134 |
],
|
135 |
"version": "==4.3.0"
|
136 |
},
|
137 |
+
"pbr": {
|
138 |
+
"hashes": [
|
139 |
+
"sha256:1b8be50d938c9bb75d0eaf7eda111eec1bf6dc88a62a6412e33bf077457e0f45",
|
140 |
+
"sha256:b486975c0cafb6beeb50ca0e17ba047647f229087bd74e37f4a7e2cac17d2caa"
|
141 |
+
],
|
142 |
+
"version": "==4.2.0"
|
143 |
+
},
|
144 |
"pluggy": {
|
145 |
"hashes": [
|
146 |
"sha256:6e3836e39f4d36ae72840833db137f7b7d35105079aee6ec4a62d9f80d594dd1",
|
|
|
173 |
},
|
174 |
"pytest": {
|
175 |
"hashes": [
|
176 |
+
"sha256:453cbbbe5ce6db38717d282b758b917de84802af4288910c12442984bde7b823",
|
177 |
+
"sha256:a8a07f84e680482eb51e244370aaf2caa6301ef265f37c2bdefb3dd3b663f99d"
|
178 |
+
],
|
179 |
+
"index": "pypi",
|
180 |
+
"version": "==3.8.0"
|
181 |
+
},
|
182 |
+
"pytest-mock": {
|
183 |
+
"hashes": [
|
184 |
+
"sha256:53801e621223d34724926a5c98bd90e8e417ce35264365d39d6c896388dcc928",
|
185 |
+
"sha256:d89a8209d722b8307b5e351496830d5cc5e192336003a485443ae9adeb7dd4c0"
|
186 |
],
|
187 |
"index": "pypi",
|
188 |
+
"version": "==1.10.0"
|
189 |
},
|
190 |
"requests": {
|
191 |
"hashes": [
|
tests/test_streams.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2 |
import random
|
3 |
|
4 |
import mock
|
|
|
5 |
|
6 |
from pytube import request
|
7 |
from pytube import Stream
|
|
|
2 |
import random
|
3 |
|
4 |
import mock
|
5 |
+
from pytest_mock import mocker
|
6 |
|
7 |
from pytube import request
|
8 |
from pytube import Stream
|