nficano commited on
Commit
2d2de06
·
1 Parent(s): f1ed8bd

fixed tests

Browse files
Files changed (3) hide show
  1. Pipfile +2 -0
  2. Pipfile.lock +37 -14
  3. 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": "87b1495a3a3e5edf1dfd9f026028aff2f3403f277f735ce3c596808da5e15df5"
5
  },
6
  "pipfile-spec": 6,
7
  "requires": {
@@ -19,18 +19,18 @@
19
  "develop": {
20
  "atomicwrites": {
21
  "hashes": [
22
- "sha256:6b5282987b21cd79151f51caccead7a09d0a32e89c568bd9e3c4aaa7bbdf3f3a",
23
- "sha256:e16334d50fe0f90919ef7339c24b9b62e6abaa78cd2d226f3d94eb067eb89043"
24
  ],
25
- "markers": "python_version != '3.0.*' and python_version != '3.2.*' and python_version >= '2.7' and python_version != '3.1.*' and python_version != '3.3.*'",
26
- "version": "==1.2.0"
27
  },
28
  "attrs": {
29
  "hashes": [
30
- "sha256:4b90b09eeeb9b88c35bc642cbac057e45a5fd85367b985bd2809c62b7b939265",
31
- "sha256:e0d0eb91441a3b53dab4d9b743eafc1ac44476296a2053b6ca3af0b139faf87b"
32
  ],
33
- "version": "==18.1.0"
34
  },
35
  "certifi": {
36
  "hashes": [
@@ -84,11 +84,11 @@
84
  },
85
  "coveralls": {
86
  "hashes": [
87
- "sha256:016358e1630559906f2e322727e5af7799c70eb61227cf1c43cad5562cd9ec89",
88
- "sha256:7ddb2e3114db9604a7cb1fcc68a7dcca32dce346f5ba568c99979b38e166f5a6"
89
  ],
90
  "index": "pypi",
91
- "version": "==1.4.0"
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:2e7c330338b2732ddb992217962e3454aa7290434e75329b1a6739cea41bea6b",
162
- "sha256:4abcd98faeea3eb95bd05aa6a7b121d5f89d72e4d36ddb0dcbbfd1ec9f3651d1"
 
 
 
 
 
 
 
 
163
  ],
164
  "index": "pypi",
165
- "version": "==3.7.3"
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