[e988c2]: / tests / unit / utils / test_log_utils.py

Download this file

10 lines (7 with data), 210 Bytes

1
2
3
4
5
6
7
8
9
from ehrql.utils import log_utils
def test_kv():
assert log_utils.kv({}) == ""
assert (
log_utils.kv({"foo": "foo", "bar": 1, "baz": [1, 2, 3]})
== "foo=foo bar=1 baz=[1, 2, 3]"
)