Skip to content

v2.0.x Chore - Improve test command construction maintainability #215

Closed
@reactive-firewall

Description

@reactive-firewall

The command construction could be more maintainable using a dictionary or configuration object.

Consider:

def get_hear_command(executable, port, group="224.0.0.1"):
    """Build the HEAR command with given parameters."""
    return [
        f"{executable} -m coverage run -p --context=Integration",
        "--source=multicast",
        "-m", "multicast",
        "--daemon", "HEAR",
        "--port", str(port),
        "--group", group
    ]

# Usage:
_fixture_HEAR_args = get_hear_command(sys.executable, _fixture_port_num)

and similar refactoring

Metadata

Metadata

Labels

ChoreMiscellaneous chores to maintain the projectMulticastAny main project file changesPython LangChanges to Python source codeTestingSomething can be verifiedenhancementNew feature or request

Type

No type

Projects

Status

Archive Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions