blob: 155ba6b737d4b1a37f5f226756dbcba62b8cf67e [file] [log] [blame] [edit]
from typing import Any
import pytest
from watchdog.utils import echo
@pytest.mark.parametrize(
("value", "expected"),
[
(("x", (1, 2, 3)), "x=(1, 2, 3)"),
],
)
def test_format_arg_value(value: tuple[str, tuple[Any, ...]], expected: str) -> None:
assert echo.format_arg_value(value) == expected