killed playlist tests, updated packages
Browse files- .gitignore +2 -0
- Pipfile +5 -15
- Pipfile.lock +62 -415
- tests/test_playlist.py +0 -77
.gitignore
CHANGED
@@ -39,3 +39,5 @@ _build
|
|
39 |
_static
|
40 |
_templates
|
41 |
_autosummary
|
|
|
|
|
|
39 |
_static
|
40 |
_templates
|
41 |
_autosummary
|
42 |
+
|
43 |
+
.pytest_cache*
|
Pipfile
CHANGED
@@ -1,22 +1,12 @@
|
|
1 |
[[source]]
|
2 |
-
url = "https://pypi.
|
3 |
verify_ssl = true
|
4 |
name = "pypi"
|
5 |
|
6 |
[packages]
|
7 |
|
8 |
[dev-packages]
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
pre-commit = "*"
|
14 |
-
pytest = "*"
|
15 |
-
pytest-cov = "*"
|
16 |
-
pytest-mock = "*"
|
17 |
-
sphinx = "*"
|
18 |
-
sphinx-rtd-theme = "*"
|
19 |
-
configparser = "*"
|
20 |
-
"urllib3" = "*"
|
21 |
-
pyopenssl = "*"
|
22 |
-
"enum34" = "*"
|
|
|
1 |
[[source]]
|
2 |
+
url = "https://pypi.org/simple"
|
3 |
verify_ssl = true
|
4 |
name = "pypi"
|
5 |
|
6 |
[packages]
|
7 |
|
8 |
[dev-packages]
|
9 |
+
ipython = "*"
|
10 |
+
|
11 |
+
[requires]
|
12 |
+
python_version = "3.7"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Pipfile.lock
CHANGED
@@ -1,354 +1,103 @@
|
|
1 |
{
|
2 |
"_meta": {
|
3 |
"hash": {
|
4 |
-
"sha256": "
|
5 |
},
|
6 |
"pipfile-spec": 6,
|
7 |
-
"requires": {
|
|
|
|
|
8 |
"sources": [
|
9 |
{
|
10 |
"name": "pypi",
|
11 |
-
"url": "https://pypi.
|
12 |
"verify_ssl": true
|
13 |
}
|
14 |
]
|
15 |
},
|
16 |
"default": {},
|
17 |
"develop": {
|
18 |
-
"
|
19 |
-
"hashes": [
|
20 |
-
"sha256:2eef172f44e8d301d25aff8068fddd65f767a3f04b5f15b0f4922f113aa1c732",
|
21 |
-
"sha256:37cdcb9e9954ed60912ebc1ca12a9d12178c26637abdf124e3cde2341c257fe0"
|
22 |
-
],
|
23 |
-
"version": "==0.7.10"
|
24 |
-
},
|
25 |
-
"asn1crypto": {
|
26 |
-
"hashes": [
|
27 |
-
"sha256:2f1adbb7546ed199e3c90ef23ec95c5cf3585bac7d11fb7eb562a3fe89c64e87",
|
28 |
-
"sha256:9d5c20441baf0cb60a4ac34cc447c6c189024b6b4c6cd7877034f4965c464e49"
|
29 |
-
],
|
30 |
-
"version": "==0.24.0"
|
31 |
-
},
|
32 |
-
"aspy.yaml": {
|
33 |
-
"hashes": [
|
34 |
-
"sha256:c959530fab398e2391516bc8d5146489f9273b07d87dd8ba5e8b73406f7cc1fa",
|
35 |
-
"sha256:da95110d120a9168c9f43601b9cb732f006d8f193ee2c9b402c823026e4a9387"
|
36 |
-
],
|
37 |
-
"version": "==1.1.0"
|
38 |
-
},
|
39 |
-
"attrs": {
|
40 |
-
"hashes": [
|
41 |
-
"sha256:4b90b09eeeb9b88c35bc642cbac057e45a5fd85367b985bd2809c62b7b939265",
|
42 |
-
"sha256:e0d0eb91441a3b53dab4d9b743eafc1ac44476296a2053b6ca3af0b139faf87b"
|
43 |
-
],
|
44 |
-
"version": "==18.1.0"
|
45 |
-
},
|
46 |
-
"babel": {
|
47 |
-
"hashes": [
|
48 |
-
"sha256:8ce4cb6fdd4393edd323227cba3a077bceb2a6ce5201c902c65e730046f41f14",
|
49 |
-
"sha256:ad209a68d7162c4cff4b29cdebe3dec4cef75492df501b0049a9433c96ce6f80"
|
50 |
-
],
|
51 |
-
"version": "==2.5.3"
|
52 |
-
},
|
53 |
-
"bumpversion": {
|
54 |
"hashes": [
|
55 |
-
"sha256:
|
56 |
-
"sha256:
|
57 |
],
|
58 |
-
"
|
59 |
-
"version": "==0.
|
60 |
-
},
|
61 |
-
"cached-property": {
|
62 |
-
"hashes": [
|
63 |
-
"sha256:67acb3ee8234245e8aea3784a492272239d9c4b487eba2fdcce9d75460d34520",
|
64 |
-
"sha256:bf093e640b7294303c7cc7ba3212f00b7a07d0416c1d923465995c9ef860a139"
|
65 |
-
],
|
66 |
-
"version": "==1.4.2"
|
67 |
-
},
|
68 |
-
"certifi": {
|
69 |
-
"hashes": [
|
70 |
-
"sha256:13e698f54293db9f89122b0581843a782ad0934a4fe0172d2a980ba77fc61bb7",
|
71 |
-
"sha256:9fa520c1bacfb634fa7af20a76bcbd3d5fb390481724c597da32c719a7dca4b0"
|
72 |
-
],
|
73 |
-
"version": "==2018.4.16"
|
74 |
-
},
|
75 |
-
"cffi": {
|
76 |
-
"hashes": [
|
77 |
-
"sha256:151b7eefd035c56b2b2e1eb9963c90c6302dc15fbd8c1c0a83a163ff2c7d7743",
|
78 |
-
"sha256:1553d1e99f035ace1c0544050622b7bc963374a00c467edafac50ad7bd276aef",
|
79 |
-
"sha256:1b0493c091a1898f1136e3f4f991a784437fac3673780ff9de3bcf46c80b6b50",
|
80 |
-
"sha256:2ba8a45822b7aee805ab49abfe7eec16b90587f7f26df20c71dd89e45a97076f",
|
81 |
-
"sha256:3c85641778460581c42924384f5e68076d724ceac0f267d66c757f7535069c93",
|
82 |
-
"sha256:3eb6434197633b7748cea30bf0ba9f66727cdce45117a712b29a443943733257",
|
83 |
-
"sha256:4c91af6e967c2015729d3e69c2e51d92f9898c330d6a851bf8f121236f3defd3",
|
84 |
-
"sha256:770f3782b31f50b68627e22f91cb182c48c47c02eb405fd689472aa7b7aa16dc",
|
85 |
-
"sha256:79f9b6f7c46ae1f8ded75f68cf8ad50e5729ed4d590c74840471fc2823457d04",
|
86 |
-
"sha256:7a33145e04d44ce95bcd71e522b478d282ad0eafaf34fe1ec5bbd73e662f22b6",
|
87 |
-
"sha256:857959354ae3a6fa3da6651b966d13b0a8bed6bbc87a0de7b38a549db1d2a359",
|
88 |
-
"sha256:87f37fe5130574ff76c17cab61e7d2538a16f843bb7bca8ebbc4b12de3078596",
|
89 |
-
"sha256:95d5251e4b5ca00061f9d9f3d6fe537247e145a8524ae9fd30a2f8fbce993b5b",
|
90 |
-
"sha256:9d1d3e63a4afdc29bd76ce6aa9d58c771cd1599fbba8cf5057e7860b203710dd",
|
91 |
-
"sha256:a36c5c154f9d42ec176e6e620cb0dd275744aa1d804786a71ac37dc3661a5e95",
|
92 |
-
"sha256:ae5e35a2c189d397b91034642cb0eab0e346f776ec2eb44a49a459e6615d6e2e",
|
93 |
-
"sha256:b0f7d4a3df8f06cf49f9f121bead236e328074de6449866515cea4907bbc63d6",
|
94 |
-
"sha256:b75110fb114fa366b29a027d0c9be3709579602ae111ff61674d28c93606acca",
|
95 |
-
"sha256:ba5e697569f84b13640c9e193170e89c13c6244c24400fc57e88724ef610cd31",
|
96 |
-
"sha256:be2a9b390f77fd7676d80bc3cdc4f8edb940d8c198ed2d8c0be1319018c778e1",
|
97 |
-
"sha256:d5d8555d9bfc3f02385c1c37e9f998e2011f0db4f90e250e5bc0c0a85a813085",
|
98 |
-
"sha256:e55e22ac0a30023426564b1059b035973ec82186ddddbac867078435801c7801",
|
99 |
-
"sha256:e90f17980e6ab0f3c2f3730e56d1fe9bcba1891eeea58966e89d352492cc74f4",
|
100 |
-
"sha256:ecbb7b01409e9b782df5ded849c178a0aa7c906cf8c5a67368047daab282b184",
|
101 |
-
"sha256:ed01918d545a38998bfa5902c7c00e0fee90e957ce036a4000a88e3fe2264917",
|
102 |
-
"sha256:edabd457cd23a02965166026fd9bfd196f4324fe6032e866d0f3bd0301cd486f",
|
103 |
-
"sha256:fdf1c1dc5bafc32bc5d08b054f94d659422b05aba244d6be4ddc1c72d9aa70fb"
|
104 |
-
],
|
105 |
-
"markers": "platform_python_implementation != 'pypy'",
|
106 |
-
"version": "==1.11.5"
|
107 |
},
|
108 |
-
"
|
109 |
"hashes": [
|
110 |
-
"sha256:
|
111 |
-
"sha256:
|
112 |
],
|
113 |
-
"version": "==1.0
|
114 |
},
|
115 |
-
"
|
116 |
"hashes": [
|
117 |
-
"sha256:
|
118 |
-
"sha256:
|
119 |
],
|
120 |
-
"version": "==3.0
|
121 |
},
|
122 |
-
"
|
123 |
"hashes": [
|
124 |
-
"sha256:
|
|
|
125 |
],
|
126 |
"index": "pypi",
|
127 |
-
"version": "==
|
128 |
-
},
|
129 |
-
"coverage": {
|
130 |
-
"hashes": [
|
131 |
-
"sha256:03481e81d558d30d230bc12999e3edffe392d244349a90f4ef9b88425fac74ba",
|
132 |
-
"sha256:0b136648de27201056c1869a6c0d4e23f464750fd9a9ba9750b8336a244429ed",
|
133 |
-
"sha256:104ab3934abaf5be871a583541e8829d6c19ce7bde2923b2751e0d3ca44db60a",
|
134 |
-
"sha256:15b111b6a0f46ee1a485414a52a7ad1d703bdf984e9ed3c288a4414d3871dcbd",
|
135 |
-
"sha256:198626739a79b09fa0a2f06e083ffd12eb55449b5f8bfdbeed1df4910b2ca640",
|
136 |
-
"sha256:1c383d2ef13ade2acc636556fd544dba6e14fa30755f26812f54300e401f98f2",
|
137 |
-
"sha256:28b2191e7283f4f3568962e373b47ef7f0392993bb6660d079c62bd50fe9d162",
|
138 |
-
"sha256:2eb564bbf7816a9d68dd3369a510be3327f1c618d2357fa6b1216994c2e3d508",
|
139 |
-
"sha256:337ded681dd2ef9ca04ef5d93cfc87e52e09db2594c296b4a0a3662cb1b41249",
|
140 |
-
"sha256:3a2184c6d797a125dca8367878d3b9a178b6fdd05fdc2d35d758c3006a1cd694",
|
141 |
-
"sha256:3c79a6f7b95751cdebcd9037e4d06f8d5a9b60e4ed0cd231342aa8ad7124882a",
|
142 |
-
"sha256:3d72c20bd105022d29b14a7d628462ebdc61de2f303322c0212a054352f3b287",
|
143 |
-
"sha256:3eb42bf89a6be7deb64116dd1cc4b08171734d721e7a7e57ad64cc4ef29ed2f1",
|
144 |
-
"sha256:4635a184d0bbe537aa185a34193898eee409332a8ccb27eea36f262566585000",
|
145 |
-
"sha256:56e448f051a201c5ebbaa86a5efd0ca90d327204d8b059ab25ad0f35fbfd79f1",
|
146 |
-
"sha256:5a13ea7911ff5e1796b6d5e4fbbf6952381a611209b736d48e675c2756f3f74e",
|
147 |
-
"sha256:69bf008a06b76619d3c3f3b1983f5145c75a305a0fea513aca094cae5c40a8f5",
|
148 |
-
"sha256:6bc583dc18d5979dc0f6cec26a8603129de0304d5ae1f17e57a12834e7235062",
|
149 |
-
"sha256:701cd6093d63e6b8ad7009d8a92425428bc4d6e7ab8d75efbb665c806c1d79ba",
|
150 |
-
"sha256:7608a3dd5d73cb06c531b8925e0ef8d3de31fed2544a7de6c63960a1e73ea4bc",
|
151 |
-
"sha256:76ecd006d1d8f739430ec50cc872889af1f9c1b6b8f48e29941814b09b0fd3cc",
|
152 |
-
"sha256:7aa36d2b844a3e4a4b356708d79fd2c260281a7390d678a10b91ca595ddc9e99",
|
153 |
-
"sha256:7d3f553904b0c5c016d1dad058a7554c7ac4c91a789fca496e7d8347ad040653",
|
154 |
-
"sha256:7e1fe19bd6dce69d9fd159d8e4a80a8f52101380d5d3a4d374b6d3eae0e5de9c",
|
155 |
-
"sha256:8c3cb8c35ec4d9506979b4cf90ee9918bc2e49f84189d9bf5c36c0c1119c6558",
|
156 |
-
"sha256:9d6dd10d49e01571bf6e147d3b505141ffc093a06756c60b053a859cb2128b1f",
|
157 |
-
"sha256:9e112fcbe0148a6fa4f0a02e8d58e94470fc6cb82a5481618fea901699bf34c4",
|
158 |
-
"sha256:ac4fef68da01116a5c117eba4dd46f2e06847a497de5ed1d64bb99a5fda1ef91",
|
159 |
-
"sha256:b8815995e050764c8610dbc82641807d196927c3dbed207f0a079833ffcf588d",
|
160 |
-
"sha256:be6cfcd8053d13f5f5eeb284aa8a814220c3da1b0078fa859011c7fffd86dab9",
|
161 |
-
"sha256:c1bb572fab8208c400adaf06a8133ac0712179a334c09224fb11393e920abcdd",
|
162 |
-
"sha256:de4418dadaa1c01d497e539210cb6baa015965526ff5afc078c57ca69160108d",
|
163 |
-
"sha256:e05cb4d9aad6233d67e0541caa7e511fa4047ed7750ec2510d466e806e0255d6",
|
164 |
-
"sha256:e4d96c07229f58cb686120f168276e434660e4358cc9cf3b0464210b04913e77",
|
165 |
-
"sha256:f3f501f345f24383c0000395b26b726e46758b71393267aeae0bd36f8b3ade80",
|
166 |
-
"sha256:f8a923a85cb099422ad5a2e345fe877bbc89a8a8b23235824a93488150e45f6e"
|
167 |
-
],
|
168 |
-
"version": "==4.5.1"
|
169 |
},
|
170 |
-
"
|
171 |
"hashes": [
|
172 |
-
"sha256:
|
173 |
-
"sha256:
|
174 |
],
|
175 |
-
"
|
176 |
-
"version": "==1.3.0"
|
177 |
},
|
178 |
-
"
|
179 |
"hashes": [
|
180 |
-
"sha256:
|
181 |
-
"sha256:
|
182 |
-
"sha256:5cb990056b7cadcca26813311187ad751ea644712022a3976443691168781b6f",
|
183 |
-
"sha256:60bda7f12ecb828358be53095fc9c6edda7de8f1ef571f96c00b2363643fa3cd",
|
184 |
-
"sha256:6fef51ec447fe9f8351894024e94736862900d3a9aa2961528e602eb65c92bdb",
|
185 |
-
"sha256:77d0ad229d47a6e0272d00f6bf8ac06ce14715a9fd02c9a97f5a2869aab3ccb2",
|
186 |
-
"sha256:808fe471b1a6b777f026f7dc7bd9a4959da4bfab64972f2bbe91e22527c1c037",
|
187 |
-
"sha256:9b62fb4d18529c84b961efd9187fecbb48e89aa1a0f9f4161c61b7fc42a101bd",
|
188 |
-
"sha256:9e5bed45ec6b4f828866ac6a6bedf08388ffcfa68abe9e94b34bb40977aba531",
|
189 |
-
"sha256:9fc295bf69130a342e7a19a39d7bbeb15c0bcaabc7382ec33ef3b2b7d18d2f63",
|
190 |
-
"sha256:abd070b5849ed64e6d349199bef955ee0ad99aefbad792f0c587f8effa681a5e",
|
191 |
-
"sha256:ba6a774749b6e510cffc2fb98535f717e0e5fd91c7c99a61d223293df79ab351",
|
192 |
-
"sha256:c332118647f084c983c6a3e1dba0f3bcb051f69d12baccac68db8d62d177eb8a",
|
193 |
-
"sha256:d6f46e862ee36df81e6342c2177ba84e70f722d9dc9c6c394f9f1f434c4a5563",
|
194 |
-
"sha256:db6013746f73bf8edd9c3d1d3f94db635b9422f503db3fc5ef105233d4c011ab",
|
195 |
-
"sha256:f57008eaff597c69cf692c3518f6d4800f0309253bb138b526a37fe9ef0c7471",
|
196 |
-
"sha256:f6c821ac253c19f2ad4c8691633ae1d1a17f120d5b01ea1d256d7b602bc59887"
|
197 |
],
|
198 |
-
"version": "==
|
199 |
},
|
200 |
-
"
|
201 |
"hashes": [
|
202 |
-
"sha256:
|
|
|
203 |
],
|
204 |
-
"version": "==0.
|
205 |
-
},
|
206 |
-
"docutils": {
|
207 |
-
"hashes": [
|
208 |
-
"sha256:02aec4bd92ab067f6ff27a38a38a41173bf01bed8f89157768c1573f53e474a6",
|
209 |
-
"sha256:51e64ef2ebfb29cae1faa133b3710143496eca21c530f3f71424d77687764274",
|
210 |
-
"sha256:7a4bd47eaf6596e1295ecb11361139febe29b084a87bf005bf899f9a42edc3c6"
|
211 |
-
],
|
212 |
-
"version": "==0.14"
|
213 |
-
},
|
214 |
-
"enum34": {
|
215 |
-
"hashes": [
|
216 |
-
"sha256:2d81cbbe0e73112bdfe6ef8576f2238f2ba27dd0d55752a776c41d38b7da2850",
|
217 |
-
"sha256:644837f692e5f550741432dd3f223bbb9852018674981b1664e5dc339387588a",
|
218 |
-
"sha256:6bd0f6ad48ec2aa117d3d141940d484deccda84d4fcd884f5c3d93c23ecd8c79",
|
219 |
-
"sha256:8ad8c4783bf61ded74527bffb48ed9b54166685e4230386a9ed9b1279e2df5b1"
|
220 |
-
],
|
221 |
-
"index": "pypi",
|
222 |
-
"version": "==1.1.6"
|
223 |
-
},
|
224 |
-
"flake8": {
|
225 |
-
"hashes": [
|
226 |
-
"sha256:7253265f7abd8b313e3892944044a365e3f4ac3fcdcfb4298f55ee9ddf188ba0",
|
227 |
-
"sha256:c7841163e2b576d435799169b78703ad6ac1bbb0f199994fc05f700b2a90ea37"
|
228 |
-
],
|
229 |
-
"index": "pypi",
|
230 |
-
"version": "==3.5.0"
|
231 |
-
},
|
232 |
-
"identify": {
|
233 |
-
"hashes": [
|
234 |
-
"sha256:8c127f455e8503eb3a5ed5388527719e1fef00a41b5e58dc036bc116f3bb8a16",
|
235 |
-
"sha256:bb5bdf324b4a24def86757c8dd8a4e91a9c28bbf1bf8505d702ce4b8d2508270"
|
236 |
-
],
|
237 |
-
"version": "==1.0.16"
|
238 |
-
},
|
239 |
-
"idna": {
|
240 |
-
"hashes": [
|
241 |
-
"sha256:2c6a5de3089009e3da7c5dde64a141dbc8551d5b7f6cf4ed7c2568d0cc520a8f",
|
242 |
-
"sha256:8c7309c718f94b3a625cb648ace320157ad16ff131ae0af362c9f21b80ef6ec4"
|
243 |
-
],
|
244 |
-
"version": "==2.6"
|
245 |
-
},
|
246 |
-
"imagesize": {
|
247 |
-
"hashes": [
|
248 |
-
"sha256:3620cc0cadba3f7475f9940d22431fc4d407269f1be59ec9b8edcca26440cf18",
|
249 |
-
"sha256:5b326e4678b6925158ccc66a9fa3122b6106d7c876ee32d7de6ce59385b96315"
|
250 |
-
],
|
251 |
-
"version": "==1.0.0"
|
252 |
-
},
|
253 |
-
"jinja2": {
|
254 |
-
"hashes": [
|
255 |
-
"sha256:74c935a1b8bb9a3947c50a54766a969d4846290e1e788ea44c1392163723c3bd",
|
256 |
-
"sha256:f84be1bb0040caca4cea721fcbbbbd61f9be9464ca236387158b0feea01914a4"
|
257 |
-
],
|
258 |
-
"version": "==2.10"
|
259 |
-
},
|
260 |
-
"markupsafe": {
|
261 |
-
"hashes": [
|
262 |
-
"sha256:a6be69091dac236ea9c6bc7d012beab42010fa914c459791d627dad4910eb665"
|
263 |
-
],
|
264 |
-
"version": "==1.0"
|
265 |
-
},
|
266 |
-
"mccabe": {
|
267 |
-
"hashes": [
|
268 |
-
"sha256:ab8a6258860da4b6677da4bd2fe5dc2c659cff31b3ee4f7f5d64e79735b80d42",
|
269 |
-
"sha256:dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f"
|
270 |
-
],
|
271 |
-
"version": "==0.6.1"
|
272 |
-
},
|
273 |
-
"mock": {
|
274 |
-
"hashes": [
|
275 |
-
"sha256:5ce3c71c5545b472da17b72268978914d0252980348636840bd34a00b5cc96c1",
|
276 |
-
"sha256:b158b6df76edd239b8208d481dc46b6afd45a846b7812ff0ce58971cf5bc8bba"
|
277 |
-
],
|
278 |
-
"index": "pypi",
|
279 |
-
"version": "==2.0.0"
|
280 |
-
},
|
281 |
-
"more-itertools": {
|
282 |
-
"hashes": [
|
283 |
-
"sha256:0dd8f72eeab0d2c3bd489025bb2f6a1b8342f9b198f6fc37b52d15cfa4531fea",
|
284 |
-
"sha256:11a625025954c20145b37ff6309cd54e39ca94f72f6bb9576d1195db6fa2442e",
|
285 |
-
"sha256:c9ce7eccdcb901a2c75d326ea134e0886abfbea5f93e91cc95de9507c0816c44"
|
286 |
-
],
|
287 |
-
"version": "==4.1.0"
|
288 |
},
|
289 |
-
"
|
290 |
"hashes": [
|
291 |
-
"sha256:
|
|
|
292 |
],
|
293 |
-
"
|
|
|
294 |
},
|
295 |
-
"
|
296 |
"hashes": [
|
297 |
-
"sha256:
|
298 |
-
"sha256:
|
299 |
],
|
300 |
-
"version": "==
|
301 |
},
|
302 |
-
"
|
303 |
"hashes": [
|
304 |
-
"sha256:
|
305 |
-
"sha256:
|
|
|
306 |
],
|
307 |
-
"version": "==
|
308 |
},
|
309 |
-
"
|
310 |
"hashes": [
|
311 |
-
"sha256:
|
312 |
-
"sha256:
|
313 |
-
"sha256:e160a7fcf25762bb60efc7e171d4497ff1d8d2d75a3d0df7a21b76821ecbf5c5"
|
314 |
],
|
315 |
"version": "==0.6.0"
|
316 |
},
|
317 |
-
"pre-commit": {
|
318 |
-
"hashes": [
|
319 |
-
"sha256:01bb5f44606735ca30c8be641fa24f5760fcc599a0260ead0067bcde2f0305f9",
|
320 |
-
"sha256:823452163aa9fb024a9ff30947ba7f5a2778708db7554a4d36438b9bbead6bbb"
|
321 |
-
],
|
322 |
-
"index": "pypi",
|
323 |
-
"version": "==1.8.2"
|
324 |
-
},
|
325 |
-
"py": {
|
326 |
-
"hashes": [
|
327 |
-
"sha256:29c9fab495d7528e80ba1e343b958684f4ace687327e6f789a94bf3d1915f881",
|
328 |
-
"sha256:983f77f3331356039fdd792e9220b7b8ee1aa6bd2b25f567a963ff1de5a64f6a"
|
329 |
-
],
|
330 |
-
"version": "==1.5.3"
|
331 |
-
},
|
332 |
-
"pycodestyle": {
|
333 |
-
"hashes": [
|
334 |
-
"sha256:682256a5b318149ca0d2a9185d365d8864a768a28db66a84a2ea946bcc426766",
|
335 |
-
"sha256:6c4245ade1edfad79c3446fadfc96b0de2759662dc29d07d80a6f27ad1ca6ba9"
|
336 |
-
],
|
337 |
-
"version": "==2.3.1"
|
338 |
-
},
|
339 |
-
"pycparser": {
|
340 |
-
"hashes": [
|
341 |
-
"sha256:99a8ca03e29851d96616ad0404b4aad7d9ee16f25c9f9708a11faf2810f7b226"
|
342 |
-
],
|
343 |
-
"version": "==2.18"
|
344 |
-
},
|
345 |
-
"pyflakes": {
|
346 |
-
"hashes": [
|
347 |
-
"sha256:08bd6a50edf8cffa9fa09a463063c425ecaaf10d1eb0335a7e8b1401aef89e6f",
|
348 |
-
"sha256:8d616a382f243dbf19b54743f280b80198be0bca3a5396f1d2e1fca6223e8805"
|
349 |
-
],
|
350 |
-
"version": "==1.6.0"
|
351 |
-
},
|
352 |
"pygments": {
|
353 |
"hashes": [
|
354 |
"sha256:78f3f434bcc5d6ee09020f92ba487f95ba50f1e3ef83ae96b9d5ffa1bab25c5d",
|
@@ -356,82 +105,11 @@
|
|
356 |
],
|
357 |
"version": "==2.2.0"
|
358 |
},
|
359 |
-
"
|
360 |
-
"hashes": [
|
361 |
-
"sha256:07a2de1a54de07448732a81e38a55df7da109b2f47f599f8bb35b0cbec69d4bd",
|
362 |
-
"sha256:2c10cfba46a52c0b0950118981d61e72c1e5b1aac451ca1bc77de1a679456773"
|
363 |
-
],
|
364 |
-
"index": "pypi",
|
365 |
-
"version": "==17.5.0"
|
366 |
-
},
|
367 |
-
"pyparsing": {
|
368 |
-
"hashes": [
|
369 |
-
"sha256:0832bcf47acd283788593e7a0f542407bd9550a55a8a8435214a1960e04bcb04",
|
370 |
-
"sha256:281683241b25fe9b80ec9d66017485f6deff1af5cde372469134b56ca8447a07",
|
371 |
-
"sha256:8f1e18d3fd36c6795bb7e02a39fd05c611ffc2596c1e0d995d34d67630426c18",
|
372 |
-
"sha256:9e8143a3e15c13713506886badd96ca4b579a87fbdf49e550dbfc057d6cb218e",
|
373 |
-
"sha256:b8b3117ed9bdf45e14dcc89345ce638ec7e0e29b2b579fa1ecf32ce45ebac8a5",
|
374 |
-
"sha256:e4d45427c6e20a59bf4f88c639dcc03ce30d193112047f94012102f235853a58",
|
375 |
-
"sha256:fee43f17a9c4087e7ed1605bd6df994c6173c1e977d7ade7b651292fab2bd010"
|
376 |
-
],
|
377 |
-
"version": "==2.2.0"
|
378 |
-
},
|
379 |
-
"pytest": {
|
380 |
-
"hashes": [
|
381 |
-
"sha256:54713b26c97538db6ff0703a12b19aeaeb60b5e599de542e7fca0ec83b9038e8",
|
382 |
-
"sha256:829230122facf05a5f81a6d4dfe6454a04978ea3746853b2b84567ecf8e5c526"
|
383 |
-
],
|
384 |
-
"index": "pypi",
|
385 |
-
"version": "==3.5.1"
|
386 |
-
},
|
387 |
-
"pytest-cov": {
|
388 |
-
"hashes": [
|
389 |
-
"sha256:03aa752cf11db41d281ea1d807d954c4eda35cfa1b21d6971966cc041bbf6e2d",
|
390 |
-
"sha256:890fe5565400902b0c78b5357004aab1c814115894f4f21370e2433256a3eeec"
|
391 |
-
],
|
392 |
-
"index": "pypi",
|
393 |
-
"version": "==2.5.1"
|
394 |
-
},
|
395 |
-
"pytest-mock": {
|
396 |
-
"hashes": [
|
397 |
-
"sha256:53801e621223d34724926a5c98bd90e8e417ce35264365d39d6c896388dcc928",
|
398 |
-
"sha256:d89a8209d722b8307b5e351496830d5cc5e192336003a485443ae9adeb7dd4c0"
|
399 |
-
],
|
400 |
-
"index": "pypi",
|
401 |
-
"version": "==1.10.0"
|
402 |
-
},
|
403 |
-
"pytz": {
|
404 |
-
"hashes": [
|
405 |
-
"sha256:65ae0c8101309c45772196b21b74c46b2e5d11b6275c45d251b150d5da334555",
|
406 |
-
"sha256:c06425302f2cf668f1bba7a0a03f3c1d34d4ebeef2c72003da308b3947c7f749"
|
407 |
-
],
|
408 |
-
"version": "==2018.4"
|
409 |
-
},
|
410 |
-
"pyyaml": {
|
411 |
"hashes": [
|
412 |
-
"sha256:
|
413 |
-
"sha256:16b20e970597e051997d90dc2cddc713a2876c47e3d92d59ee198700c5427736",
|
414 |
-
"sha256:3262c96a1ca437e7e4763e2843746588a965426550f3797a79fca9c6199c431f",
|
415 |
-
"sha256:326420cbb492172dec84b0f65c80942de6cedb5233c413dd824483989c000608",
|
416 |
-
"sha256:4474f8ea030b5127225b8894d626bb66c01cda098d47a2b0d3429b6700af9fd8",
|
417 |
-
"sha256:592766c6303207a20efc445587778322d7f73b161bd994f227adaa341ba212ab",
|
418 |
-
"sha256:5ac82e411044fb129bae5cfbeb3ba626acb2af31a8d17d175004b70862a741a7",
|
419 |
-
"sha256:5f84523c076ad14ff5e6c037fe1c89a7f73a3e04cf0377cb4d017014976433f3",
|
420 |
-
"sha256:827dc04b8fa7d07c44de11fabbc888e627fa8293b695e0f99cb544fdfa1bf0d1",
|
421 |
-
"sha256:b4c423ab23291d3945ac61346feeb9a0dc4184999ede5e7c43e1ffb975130ae6",
|
422 |
-
"sha256:bc6bced57f826ca7cb5125a10b23fd0f2fff3b7c4701d64c439a300ce665fff8",
|
423 |
-
"sha256:c01b880ec30b5a6e6aa67b09a2fe3fb30473008c85cd6a67359a1b15ed6d83a4",
|
424 |
-
"sha256:ca233c64c6e40eaa6c66ef97058cdc80e8d0157a443655baa1b2966e812807ca",
|
425 |
-
"sha256:e863072cdf4c72eebf179342c94e6989c67185842d9997960b3e69290b2fa269"
|
426 |
],
|
427 |
-
"version": "==
|
428 |
-
},
|
429 |
-
"requests": {
|
430 |
-
"hashes": [
|
431 |
-
"sha256:6a1b267aa90cac58ac3a765d067950e7dbbf75b1da07e895d1f594193a40a38b",
|
432 |
-
"sha256:9c443e7324ba5b85070c4a818ade28bfabedf16ea10206da1132edaa6dda237e"
|
433 |
-
],
|
434 |
-
"version": "==2.18.4"
|
435 |
},
|
436 |
"six": {
|
437 |
"hashes": [
|
@@ -440,50 +118,19 @@
|
|
440 |
],
|
441 |
"version": "==1.11.0"
|
442 |
},
|
443 |
-
"
|
444 |
"hashes": [
|
445 |
-
"sha256:
|
446 |
-
"sha256:
|
447 |
],
|
448 |
-
"version": "==
|
449 |
-
},
|
450 |
-
"sphinx": {
|
451 |
-
"hashes": [
|
452 |
-
"sha256:2e7ad92e96eff1b2006cf9f0cdb2743dacbae63755458594e9e8238b0c3dc60b",
|
453 |
-
"sha256:e9b1a75a3eae05dded19c80eb17325be675e0698975baae976df603b6ed1eb10"
|
454 |
-
],
|
455 |
-
"index": "pypi",
|
456 |
-
"version": "==1.7.4"
|
457 |
-
},
|
458 |
-
"sphinx-rtd-theme": {
|
459 |
-
"hashes": [
|
460 |
-
"sha256:32424dac2779f0840b4788fbccb032ba2496c1ca47a439ad2510c8b1e55dfd33",
|
461 |
-
"sha256:6d0481532b5f441b075127a2d755f430f1f8410a50112b1af6b069518548381d"
|
462 |
-
],
|
463 |
-
"index": "pypi",
|
464 |
-
"version": "==0.3.1"
|
465 |
-
},
|
466 |
-
"sphinxcontrib-websupport": {
|
467 |
-
"hashes": [
|
468 |
-
"sha256:7a85961326aa3a400cd4ad3c816d70ed6f7c740acd7ce5d78cd0a67825072eb9",
|
469 |
-
"sha256:f4932e95869599b89bf4f80fc3989132d83c9faa5bf633e7b5e0c25dffb75da2"
|
470 |
-
],
|
471 |
-
"version": "==1.0.1"
|
472 |
-
},
|
473 |
-
"urllib3": {
|
474 |
-
"hashes": [
|
475 |
-
"sha256:06330f386d6e4b195fbfc736b297f58c5a892e4440e54d294d7004e3a9bbea1b",
|
476 |
-
"sha256:cc44da8e1145637334317feebd728bd869a35285b93cbb4cca2577da7e62db4f"
|
477 |
-
],
|
478 |
-
"index": "pypi",
|
479 |
-
"version": "==1.22"
|
480 |
},
|
481 |
-
"
|
482 |
"hashes": [
|
483 |
-
"sha256:
|
484 |
-
"sha256:
|
485 |
],
|
486 |
-
"version": "==
|
487 |
}
|
488 |
}
|
489 |
}
|
|
|
1 |
{
|
2 |
"_meta": {
|
3 |
"hash": {
|
4 |
+
"sha256": "b987970e79cd5b393a111473313c6c8ffe7efc02af8b8d67d270661bf7ac8485"
|
5 |
},
|
6 |
"pipfile-spec": 6,
|
7 |
+
"requires": {
|
8 |
+
"python_version": "3.7"
|
9 |
+
},
|
10 |
"sources": [
|
11 |
{
|
12 |
"name": "pypi",
|
13 |
+
"url": "https://pypi.org/simple",
|
14 |
"verify_ssl": true
|
15 |
}
|
16 |
]
|
17 |
},
|
18 |
"default": {},
|
19 |
"develop": {
|
20 |
+
"appnope": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
"hashes": [
|
22 |
+
"sha256:5b26757dc6f79a3b7dc9fab95359328d5747fcb2409d331ea66d0272b90ab2a0",
|
23 |
+
"sha256:8b995ffe925347a2138d7ac0fe77155e4311a0ea6d6da4f5128fe4b3cbe5ed71"
|
24 |
],
|
25 |
+
"markers": "sys_platform == 'darwin'",
|
26 |
+
"version": "==0.1.0"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
},
|
28 |
+
"backcall": {
|
29 |
"hashes": [
|
30 |
+
"sha256:38ecd85be2c1e78f77fd91700c76e14667dc21e2713b63876c0eb901196e01e4",
|
31 |
+
"sha256:bbbf4b1e5cd2bdb08f915895b51081c041bac22394fdfcfdfbe9f14b77c08bf2"
|
32 |
],
|
33 |
+
"version": "==0.1.0"
|
34 |
},
|
35 |
+
"decorator": {
|
36 |
"hashes": [
|
37 |
+
"sha256:2c51dff8ef3c447388fe5e4453d24a2bf128d3a4c32af3fabef1f01c6851ab82",
|
38 |
+
"sha256:c39efa13fbdeb4506c476c9b3babf6a718da943dab7811c206005a4a956c080c"
|
39 |
],
|
40 |
+
"version": "==4.3.0"
|
41 |
},
|
42 |
+
"ipython": {
|
43 |
"hashes": [
|
44 |
+
"sha256:007dcd929c14631f83daff35df0147ea51d1af420da303fd078343878bd5fb62",
|
45 |
+
"sha256:b0f2ef9eada4a68ef63ee10b6dde4f35c840035c50fd24265f8052c98947d5a4"
|
46 |
],
|
47 |
"index": "pypi",
|
48 |
+
"version": "==6.5.0"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
},
|
50 |
+
"ipython-genutils": {
|
51 |
"hashes": [
|
52 |
+
"sha256:72dd37233799e619666c9f639a9da83c34013a73e8bbc79a7a6348d93c61fab8",
|
53 |
+
"sha256:eb2e116e75ecef9d4d228fdc66af54269afa26ab4463042e33785b887c628ba8"
|
54 |
],
|
55 |
+
"version": "==0.2.0"
|
|
|
56 |
},
|
57 |
+
"jedi": {
|
58 |
"hashes": [
|
59 |
+
"sha256:b409ed0f6913a701ed474a614a3bb46e6953639033e31f769ca7581da5bd1ec1",
|
60 |
+
"sha256:c254b135fb39ad76e78d4d8f92765ebc9bf92cbc76f49e97ade1d5f5121e1f6f"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
],
|
62 |
+
"version": "==0.12.1"
|
63 |
},
|
64 |
+
"parso": {
|
65 |
"hashes": [
|
66 |
+
"sha256:35704a43a3c113cce4de228ddb39aab374b8004f4f2407d070b6a2ca784ce8a2",
|
67 |
+
"sha256:895c63e93b94ac1e1690f5fdd40b65f07c8171e3e53cbd7793b5b96c0e0a7f24"
|
68 |
],
|
69 |
+
"version": "==0.3.1"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
},
|
71 |
+
"pexpect": {
|
72 |
"hashes": [
|
73 |
+
"sha256:2a8e88259839571d1251d278476f3eec5db26deb73a70be5ed5dc5435e418aba",
|
74 |
+
"sha256:3fbd41d4caf27fa4a377bfd16fef87271099463e6fa73e92a52f92dfee5d425b"
|
75 |
],
|
76 |
+
"markers": "sys_platform != 'win32'",
|
77 |
+
"version": "==4.6.0"
|
78 |
},
|
79 |
+
"pickleshare": {
|
80 |
"hashes": [
|
81 |
+
"sha256:84a9257227dfdd6fe1b4be1319096c20eb85ff1e82c7932f36efccfe1b09737b",
|
82 |
+
"sha256:c9a2541f25aeabc070f12f452e1f2a8eae2abd51e1cd19e8430402bdf4c1d8b5"
|
83 |
],
|
84 |
+
"version": "==0.7.4"
|
85 |
},
|
86 |
+
"prompt-toolkit": {
|
87 |
"hashes": [
|
88 |
+
"sha256:1df952620eccb399c53ebb359cc7d9a8d3a9538cb34c5a1344bdbeb29fbcc381",
|
89 |
+
"sha256:3f473ae040ddaa52b52f97f6b4a493cfa9f5920c255a12dc56a7d34397a398a4",
|
90 |
+
"sha256:858588f1983ca497f1cf4ffde01d978a3ea02b01c8a26a8bbc5cd2e66d816917"
|
91 |
],
|
92 |
+
"version": "==1.0.15"
|
93 |
},
|
94 |
+
"ptyprocess": {
|
95 |
"hashes": [
|
96 |
+
"sha256:923f299cc5ad920c68f2bc0bc98b75b9f838b93b599941a6b63ddbc2476394c0",
|
97 |
+
"sha256:d7cc528d76e76342423ca640335bd3633420dc1366f258cb31d05e865ef5ca1f"
|
|
|
98 |
],
|
99 |
"version": "==0.6.0"
|
100 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
"pygments": {
|
102 |
"hashes": [
|
103 |
"sha256:78f3f434bcc5d6ee09020f92ba487f95ba50f1e3ef83ae96b9d5ffa1bab25c5d",
|
|
|
105 |
],
|
106 |
"version": "==2.2.0"
|
107 |
},
|
108 |
+
"simplegeneric": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
"hashes": [
|
110 |
+
"sha256:dc972e06094b9af5b855b3df4a646395e43d1c9d0d39ed345b7393560d0b9173"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
],
|
112 |
+
"version": "==0.8.1"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
},
|
114 |
"six": {
|
115 |
"hashes": [
|
|
|
118 |
],
|
119 |
"version": "==1.11.0"
|
120 |
},
|
121 |
+
"traitlets": {
|
122 |
"hashes": [
|
123 |
+
"sha256:9c4bd2d267b7153df9152698efb1050a5d84982d3384a37b2c1f7723ba3e7835",
|
124 |
+
"sha256:c6cb5e6f57c5a9bdaa40fa71ce7b4af30298fbab9ece9815b5d995ab6217c7d9"
|
125 |
],
|
126 |
+
"version": "==4.3.2"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
},
|
128 |
+
"wcwidth": {
|
129 |
"hashes": [
|
130 |
+
"sha256:3df37372226d6e63e1b1e1eda15c594bca98a22d33a23832a90998faa96bc65e",
|
131 |
+
"sha256:f4ebe71925af7b40a864553f761ed559b43544f8f71746c2d756c7fe788ade7c"
|
132 |
],
|
133 |
+
"version": "==0.1.7"
|
134 |
}
|
135 |
}
|
136 |
}
|
tests/test_playlist.py
DELETED
@@ -1,77 +0,0 @@
|
|
1 |
-
# -*- coding: utf-8 -*-
|
2 |
-
from pytube import Playlist
|
3 |
-
|
4 |
-
short_test_pl = 'https://www.youtube.com/watch?v=' \
|
5 |
-
'm5q2GCsteQs&list=PL525f8ds9RvsXDl44X6Wwh9t3fCzFNApw'
|
6 |
-
long_test_pl = 'https://www.youtube.com/watch?v=' \
|
7 |
-
'9CHDoAsX1yo&list=UUXuqSBlHAE6Xw-yeJA0Tunw'
|
8 |
-
|
9 |
-
|
10 |
-
def test_construct():
|
11 |
-
ob = Playlist(short_test_pl)
|
12 |
-
expected = 'https://www.youtube.com/' \
|
13 |
-
'playlist?list=' \
|
14 |
-
'PL525f8ds9RvsXDl44X6Wwh9t3fCzFNApw'
|
15 |
-
|
16 |
-
assert ob.construct_playlist_url() == expected
|
17 |
-
|
18 |
-
|
19 |
-
def test_populate():
|
20 |
-
ob = Playlist(short_test_pl)
|
21 |
-
expected = [
|
22 |
-
'https://www.youtube.com/watch?v=m5q2GCsteQs',
|
23 |
-
'https://www.youtube.com/watch?v=5YK63cXyJ2Q',
|
24 |
-
'https://www.youtube.com/watch?v=Rzt4rUPFYD4',
|
25 |
-
]
|
26 |
-
|
27 |
-
ob.populate_video_urls()
|
28 |
-
assert ob.video_urls == expected
|
29 |
-
|
30 |
-
|
31 |
-
def test_link_parse():
|
32 |
-
ob = Playlist(short_test_pl)
|
33 |
-
|
34 |
-
expected = [
|
35 |
-
'/watch?v=m5q2GCsteQs',
|
36 |
-
'/watch?v=5YK63cXyJ2Q',
|
37 |
-
'/watch?v=Rzt4rUPFYD4',
|
38 |
-
]
|
39 |
-
assert ob.parse_links() == expected
|
40 |
-
|
41 |
-
|
42 |
-
def test_download():
|
43 |
-
ob = Playlist(short_test_pl)
|
44 |
-
ob.download_all()
|
45 |
-
ob.download_all('.')
|
46 |
-
ob.download_all(prefix_number=False)
|
47 |
-
ob.download_all('.', prefix_number=False)
|
48 |
-
|
49 |
-
|
50 |
-
def test_numbering():
|
51 |
-
ob = Playlist(short_test_pl)
|
52 |
-
ob.populate_video_urls()
|
53 |
-
gen = ob._path_num_prefix_generator(reverse=False)
|
54 |
-
assert '1' in next(gen)
|
55 |
-
assert '2' in next(gen)
|
56 |
-
|
57 |
-
ob = Playlist(short_test_pl)
|
58 |
-
ob.populate_video_urls()
|
59 |
-
gen = ob._path_num_prefix_generator(reverse=True)
|
60 |
-
assert str(len(ob.video_urls)) in next(gen)
|
61 |
-
assert str(len(ob.video_urls) - 1) in next(gen)
|
62 |
-
|
63 |
-
ob = Playlist(long_test_pl)
|
64 |
-
ob.populate_video_urls()
|
65 |
-
gen = ob._path_num_prefix_generator(reverse=False)
|
66 |
-
nxt = next(gen)
|
67 |
-
assert len(nxt) > 1
|
68 |
-
assert '1' in nxt
|
69 |
-
nxt = next(gen)
|
70 |
-
assert len(nxt) > 1
|
71 |
-
assert '2' in nxt
|
72 |
-
|
73 |
-
ob = Playlist(long_test_pl)
|
74 |
-
ob.populate_video_urls()
|
75 |
-
gen = ob._path_num_prefix_generator(reverse=True)
|
76 |
-
assert str(len(ob.video_urls)) in next(gen)
|
77 |
-
assert str(len(ob.video_urls) - 1) in next(gen)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|