Skip to content

Commit

Permalink
also check tarfile content
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnerluis1982 committed Jan 31, 2023
1 parent 4d1e804 commit eddc5ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/console/commands/test_build.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

import shutil
import tarfile

from pathlib import Path
from typing import TYPE_CHECKING
Expand Down Expand Up @@ -37,3 +38,7 @@ def test_build_with_multiple_readme_files(
(wheel_file,) = build_dir.glob("my_package-0.1-*.whl")
assert wheel_file.exists()
assert wheel_file.stat().st_size > 0

sdist_content = tarfile.open(sdist_file)
assert "my_package-0.1/README-1.rst" in sdist_content
assert "my_package-0.1/README-2.rst" in sdist_content

0 comments on commit eddc5ee

Please sign in to comment.