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

Method test_merge_works_without_bind

tests/test_threadlocal.py:358–364  ·  view source on GitHub ↗

merge_threadlocal returns values as normal even when there has been no previous calls to bind_threadlocal.

(self)

Source from the content-addressed store, hash-verified

356 assert {"b": 2} == merge_threadlocal(None, None, {"b": 2})
357
358 def test_merge_works_without_bind(self):
359 """
360 merge_threadlocal returns values as normal even when there has
361 been no previous calls to bind_threadlocal.
362 """
363 with pytest.deprecated_call():
364 assert {"b": 2} == merge_threadlocal(None, None, {"b": 2})
365
366 def test_multiple_binds(self):
367 """

Callers

nothing calls this directly

Calls 1

merge_threadlocalFunction · 0.90

Tested by

no test coverage detected