Skip to content

Commit

Permalink
tests: adapt to normalized names
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Aug 1, 2023
1 parent 4b565cb commit 537e57a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ def package_simple_pyproject_ext(
"simple_pyproject_ext",
"cbf3102cf86f709dfd3f244b69e5ee3faff9e3c94c53ef85f146d9bad96660b3",
"538a8221e10c5029c78127e4169d2df622b9a88dfce12a8b63eeaaa98cda8a09",
"0dab37b48497f95c044781204b7d49c752739b32a0ef7a7a02ec987b5c4a210b",
"feeedcb0070a211d93b967fe083aa31e448842eb9b93d5e428807348e40e44e8",
"8e4699df8afa812d7c022a3840dfbdce5b4f0e9aac5700dbc5eeb522482f135d",
"676cca918aef5b9b4a3db1499a39e61b0cbacf5edf3379bf8e3d90fe75f01a8c",
)
process_package(package, tmp_path, monkeypatch)
return package
Expand Down
6 changes: 3 additions & 3 deletions tests/test_pyproject_pep517.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ def test_pep517_sdist():
out = build_sdist("dist")

(sdist,) = dist.iterdir()
assert sdist.name == "cmake-example-0.0.1.tar.gz"
assert sdist.name == "cmake_example-0.0.1.tar.gz"
assert sdist == dist / out

with tarfile.open(sdist) as f:
file_names = set(f.getnames())
assert file_names == {
f"cmake-example-0.0.1/{x}"
f"cmake_example-0.0.1/{x}"
for x in (
"CMakeLists.txt",
"pyproject.toml",
Expand All @@ -58,7 +58,7 @@ def test_pep517_sdist():
"LICENSE",
)
}
pkg_info = f.extractfile("cmake-example-0.0.1/PKG-INFO")
pkg_info = f.extractfile("cmake_example-0.0.1/PKG-INFO")
assert pkg_info
pkg_info_contents = pkg_info.read().decode()
assert pkg_info_contents == METADATA
Expand Down

0 comments on commit 537e57a

Please sign in to comment.