File: test_echo.py

package info (click to toggle)
python-watchdog 6.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 808 kB
  • sloc: python: 6,384; ansic: 609; xml: 155; makefile: 124; sh: 8
file content (15 lines) | stat: -rw-r--r-- 322 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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