hbmartin commited on
Commit
7f436b1
·
1 Parent(s): 4245a85

gzip playlist.html

Browse files
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, encoding="utf-8") as f:
63
- read_data = f.read()
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