tests.test_build

Build and packaging tests for the multicast package.

This module contains test cases that verify the build process, package structure, and installation requirements of the multicast package.

Classes: BuildPEP517TestSuite: Test cases for build verification. BuildPEP621TestSuite: Test cases for metadata verification.

Meta Testing:

    >>> import tests.test_build
    >>> tests.test_build.__name__
    'tests.test_build'
    >>>

Module Contents

Classes

BuildPEP517TestSuite

Test suite for PEP 621 metadata compliance.

BuildPEP621TestSuite

Data

__module__

API

tests.test_build.__module__[source]

‘tests’

class tests.test_build.BuildPEP517TestSuite(methodName='runTest')[source][source]

Bases: context.BasicUsageTestSuite

Test suite for PEP 621 metadata compliance.

This test suite verifies that the project adheres to PEP 621 standards for project metadata specification in pyproject.toml.

Meta Testing:

    >>> import tests.test_build
    >>> tests.test_build.BuildPEP621TestSuite
    <class 'tests.test_build.BuildPEP621TestSuite'>
    >>>

Initialization

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

__module__[source]

‘tests.test_build’

test_build_works_WHEN_supporting_pep517() None[source][source]

Test building the package using PEP 517 standards.

This test verifies:

  1. Successful package build (both sdist and wheel)

  2. Presence of expected distribution files

References:

Args: None

Returns: None

class tests.test_build.BuildPEP621TestSuite(methodName='runTest')[source][source]

Bases: context.BasicUsageTestSuite

__module__[source]

‘tests.test_build’

test_has_configs_WHEN_supporting_pep621() None[source][source]

Test presence of the package config pyproject.toml for using PEP 621 standards.

This test verifies:

  1. Presence of expected project config files (pyproject.toml)

References: