MCPcopy Create free account
hub / github.com/hynek/structlog / test_formats_tuple

Method test_formats_tuple

tests/test_stdlib.py:458–470  ·  view source on GitHub ↗

Positional arguments as simple types are rendered.

(self)

Source from the content-addressed store, hash-verified

456
457class TestPositionalArgumentsFormatter:
458 def test_formats_tuple(self):
459 """
460 Positional arguments as simple types are rendered.
461 """
462 formatter = PositionalArgumentsFormatter()
463 event_dict = formatter(
464 None,
465 None,
466 {"event": "%d %d %s", "positional_args": (1, 2, "test")},
467 )
468
469 assert "1 2 test" == event_dict["event"]
470 assert "positional_args" not in event_dict
471
472 def test_formats_dict(self):
473 """

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected