gzip playlist.html
Browse files- tests/conftest.py +3 -4
- tests/mocks/playlist.html +0 -0
- tests/mocks/playlist.html.gz +0 -0
tests/conftest.py
CHANGED
@@ -57,8 +57,7 @@ def playlist_html():
|
|
57 |
"""Youtube playlist HTML loaded on 2020-01-25 from
|
58 |
https://www.youtube.com/playlist?list=PLzMcBGfZo4-mP7qA9cagf68V06sko5otr"""
|
59 |
file_path = os.path.join(
|
60 |
-
os.path.dirname(os.path.realpath(__file__)), "mocks", "playlist.html"
|
61 |
)
|
62 |
-
with open(file_path,
|
63 |
-
|
64 |
-
return read_data
|
|
|
57 |
"""Youtube playlist HTML loaded on 2020-01-25 from
|
58 |
https://www.youtube.com/playlist?list=PLzMcBGfZo4-mP7qA9cagf68V06sko5otr"""
|
59 |
file_path = os.path.join(
|
60 |
+
os.path.dirname(os.path.realpath(__file__)), "mocks", "playlist.html.gz"
|
61 |
)
|
62 |
+
with gzip.open(file_path, "rb") as f:
|
63 |
+
return f.read().decode("utf-8")
|
|
tests/mocks/playlist.html
DELETED
The diff for this file is too large to render.
See raw diff
|
|
tests/mocks/playlist.html.gz
ADDED
Binary file (33.2 kB). View file
|
|