File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 22
33import io
44import json
5- import re
65import os .path
6+ import re
77import urllib .request
88import zipfile
99from unittest import mock
@@ -87,8 +87,11 @@ def test_main_new_package(tmp_path):
8787 sha = "64f7f4664408d711c17ad28c1d3ba7dd155501e67c8632fafc8a525ba3ebc527"
8888
8989 with open (dest .joinpath ("simple/a/index.html" )) as f :
90- index_html = re .sub (r'\s+' , ' ' , f .read ())
91- assert f'<a href="http://example.com/wheels/{ wheel_name } #sha256={ sha } " data-core-metadata="sha256={ sha } " >a-1-py3-none-any.whl</a>' in index_html
90+ index_html = re .sub (r"\s+" , " " , f .read ())
91+ assert (
92+ f'<a href="http://example.com/wheels/{ wheel_name } #sha256={ sha } " data-core-metadata="sha256={ sha } " >a-1-py3-none-any.whl</a>'
93+ in index_html
94+ )
9295
9396 with open (dest .joinpath (f"wheels/{ wheel_name } .metadata" )) as f :
9497 assert f .read () == f"sha256={ sha } "
You can’t perform that action at this time.
0 commit comments