tests.test_manifest

Module Contents

Classes

TestManifestInclusion

Data

__module__

API

tests.test_manifest.__module__[source]

‘tests’

class tests.test_manifest.TestManifestInclusion(methodName='runTest')[source][source]

Bases: context.BasicUsageTestSuite

__module__[source]

‘tests.test_manifest’

setUp()[source][source]
_build_sdist_and_get_members()[source][source]

Build the source distribution and return the list of member files and package version.

This helper method runs the command to create a source distribution (sdist) of the package and then extracts the list of files included in the archive.

Returns: tuple: A tuple containing the list of member file paths and the package version string.

Raises: AssertionError: If the build command does not run successfully or if no files are found in the ‘dist’ directory.

test_sdist_includes_required_files()[source][source]

Test that the source distribution includes all required files.

This test verifies that the source distribution includes all expected files by building the sdist and checking if the required files are present in the tar archive.

test_sdist_excludes_unwanted_files()[source][source]

Test that the source distribution excludes unwanted files.

This test ensures that unwanted files and directories are not included in the source distribution by building the sdist and verifying that these files are absent from the tar archive.