Description
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
Assignees
Labels
Type
Projects
Status
Archive Backlog