Skip to content

Commit

Permalink
Add test asserting cli scripts are included in wheel.
Browse files Browse the repository at this point in the history
Captures missed expectation in #4475.
  • Loading branch information
jaraco committed Jul 18, 2024
1 parent 1a52f11 commit 5be48b9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setuptools/tests/test_setuptools.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,3 +307,10 @@ def test_its_own_wheel_does_not_contain_tests(setuptools_wheel):

for member in contents:
assert '/tests/' not in member


def test_wheel_includes_cli_scripts(setuptools_wheel):
with ZipFile(setuptools_wheel) as zipfile:
contents = [f.replace(os.sep, '/') for f in zipfile.namelist()]

assert any('cli-64.exe' in member for member in contents)

0 comments on commit 5be48b9

Please sign in to comment.