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
Test suite for PEP 517 build compatibility. |
|
Test suite for validating the PEP 621 compliance of a Python package build configuration. |
Data
API
- tests.test_build.__module__[source]
‘tests’
- class tests.test_build.BuildPEP517TestSuite(methodName='runTest')[source][source]
Bases:
context.BasicUsageTestSuiteTest suite for PEP 517 build compatibility.
This test suite verifies that the project adheres to PEP 517 standards for project builds. Minimal compatibility only.
Attributes: module (str): Module identifier
Meta Testing:
>>> import tests.test_build >>> tests.test_build.BuildPEP517TestSuite <class 'tests.test_build.BuildPEP517TestSuite'> >>>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:
Successful package build isolation support (via venv)
Successful package build (both sdist and wheel)
Presence of expected distribution files
References:
PEP 517: https://peps.python.org/pep-0517/
Args: None
Returns: None
- class tests.test_build.BuildPEP621TestSuite(methodName='runTest')[source][source]
Bases:
context.BasicUsageTestSuiteTest suite for validating the PEP 621 compliance of a Python package build configuration.
This test suite is designed to ensure that a project adheres to the standards set by Python Enhancement Proposal (PEP) 621, which outlines the structure and required fields for the
pyproject.tomlfile. This configuration file is essential for the modern Python build system, allowing for improved project management and package distribution.Attributes: module (str): Module identifier
Methods: test_has_configs_WHEN_supporting_pep621: Tests the presence of the required project configuration file (
pyproject.toml) to verify compliance with PEP 621 standards.References:
PEP 621: https://peps.python.org/pep-0621/
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_has_configs_WHEN_supporting_pep621() None[source][source]
Test presence of the package config pyproject.toml for using PEP 621 standards.
This test verifies:
Presence of expected project config files (pyproject.toml)
References:
PEP 621: https://peps.python.org/pep-0621/