| 405 | def test_sanitize_metadata_string_coerces_non_string(): |
| 406 | # Non-str/dict/list/scalar inputs route through string sanitisation. |
| 407 | class _Custom: |
| 408 | def __str__(self) -> str: |
| 409 | return "custom-repr" |
| 410 | assert _sanitize_metadata_string(_Custom()) == "custom-repr" |
| 411 | |
| 412 |
no outgoing calls