Skip to content

Commit ab24a43

Browse files
committed
pc
1 parent 6a9bf11 commit ab24a43

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/make_index_test.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import io
44
import json
5-
import re
65
import os.path
6+
import re
77
import urllib.request
88
import zipfile
99
from 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}"

0 commit comments

Comments
 (0)