Multiple calls to bind_threadlocal accumulate values instead of replacing them.
(self)
| 364 | assert {"b": 2} == merge_threadlocal(None, None, {"b": 2}) |
| 365 | |
| 366 | def test_multiple_binds(self): |
| 367 | """ |
| 368 | Multiple calls to bind_threadlocal accumulate values instead of |
| 369 | replacing them. |
| 370 | """ |
| 371 | with pytest.deprecated_call(): |
| 372 | bind_threadlocal(a=1, b=2) |
| 373 | bind_threadlocal(c=3) |
| 374 | |
| 375 | with pytest.deprecated_call(): |
| 376 | assert {"a": 1, "b": 2, "c": 3} == merge_threadlocal( |
| 377 | None, None, {"b": 2} |
| 378 | ) |
| 379 | |
| 380 | def test_unbind_threadlocal(self): |
| 381 | """ |
nothing calls this directly
no test coverage detected