Skip to content

Commit 084596f

Browse files
committed
fix tests
1 parent a801103 commit 084596f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ jobs:
6767
with:
6868
path: dist
6969
- run: python3 -um make_index --rebuild --pypi-url https://pypi.devinfra.sentry.io --dest index
70-
- run: cat index/simple/dumb-pypi/index.html
70+
- run: |
71+
cat index/simple/dumb-pypi/index.html
72+
tree index/wheels
73+
cat index/wheels/dumb_pypi-1.15.0-py2.py3-none-any.whl.metadata
7174
7275
# - uses: google-github-actions/auth@ba79af03959ebeac9769e648f473a284504d9193 # v2.1.10
7376
# with:

tests/make_index_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def test_make_info_empty_wheel_metadata(tmp_path):
3232
"filename": "a-1-py3-none-any.whl",
3333
"hash": "sha256=64f7f4664408d711c17ad28c1d3ba7dd155501e67c8632fafc8a525ba3ebc527",
3434
"core_metadata": "sha256=d4528dc2d072c0e6d65addae8b5700fd29253b9eb9a9214aba539447d6f29fae",
35+
"_metadata": b"Name: a\nVersion: 1\n",
3536
"upload_timestamp": mock.ANY,
3637
"uploaded_by": re_assert.Matches(r"^git@[a-f0-9]{7}"),
3738
}
@@ -59,6 +60,9 @@ def test_make_info_full_wheel_metadata(tmp_path):
5960
"packaging (==21.3) ; extra = 'p'",
6061
],
6162
"core_metadata": "sha256=a015186125a83e6667547b156f8c6813e72fbab48c4ae635ac3c3a5f1d86aa9f",
63+
"_metadata": b"Name: a\nVersion: 1\nRequires-Python: >= 3.7, != 3.7.0\nRequire"
64+
b"s-Dist: cfgv (>=1)\nRequires-Dist: jsonschema\nRequires-Dist: "
65+
b"packaging (==21.3) ; extra = 'p'\n",
6266
"requires_python": ">= 3.7, != 3.7.0",
6367
"upload_timestamp": mock.ANY,
6468
"uploaded_by": re_assert.Matches(r"^git@[a-f0-9]{7}"),

0 commit comments

Comments
 (0)