[Core] Add more interops tests (#26841)

To test that the client propagates both ways
This commit is contained in:
William FH
2024-09-24 20:18:20 -07:00
committed by GitHub
parent 9b6ac41442
commit 82b5b77940
5 changed files with 36 additions and 18 deletions

View File

@@ -65,7 +65,7 @@ def test_example_id_assignment_threadsafe() -> None:
def test_tracer_with_run_tree_parent() -> None:
mock_session = unittest.mock.MagicMock()
client = Client(session=mock_session, api_key="test")
parent = RunTree(name="parent", inputs={"input": "foo"}, _client=client)
parent = RunTree(name="parent", inputs={"input": "foo"}, _client=client) # type: ignore
run_id = uuid.uuid4()
tracer = LangChainTracer(client=client)
tracer.order_map[parent.id] = (parent.trace_id, parent.dotted_order)