()
| 344 | @pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"]) |
| 345 | async def test_serialize_data(sync: bool) -> None: |
| 346 | def body() -> object: |
| 347 | return { |
| 348 | "nested": MappingProxyType({"keep": (1, 2), "drop": omit}), |
| 349 | "when": datetime(2024, 1, 2, 3, 4, 5, tzinfo=timezone.utc), |
| 350 | } |
| 351 | |
| 352 | if sync: |
| 353 | serialized = serialize_data(body(), location="body") |
no outgoing calls
no test coverage detected