Home / Function/ test_sync() — langchain Function Reference

test_sync() — langchain Function Reference

Architecture documentation for the test_sync() function in test_tracing_interops.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  94606c53_844b_2d78_abaf_9a0055c3e789["test_sync()"]
  bf7edb6a_efe2_778a_5204_a2813723040a["TestRunnableSequenceParallelTraceNesting"]
  94606c53_844b_2d78_abaf_9a0055c3e789 -->|defined in| bf7edb6a_efe2_778a_5204_a2813723040a
  3719e2cc_93ad_455c_1a0f_e9a777837449["_create_parent()"]
  94606c53_844b_2d78_abaf_9a0055c3e789 -->|calls| 3719e2cc_93ad_455c_1a0f_e9a777837449
  500b76bd_3ec5_98ce_3a9c_3f62ed483d4a["_check_posts()"]
  94606c53_844b_2d78_abaf_9a0055c3e789 -->|calls| 500b76bd_3ec5_98ce_3a9c_3f62ed483d4a
  style 94606c53_844b_2d78_abaf_9a0055c3e789 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/runnables/test_tracing_interops.py lines 383–394

    def test_sync(
        self, method: Callable[[RunnableLambda, list[BaseCallbackHandler]], int]
    ) -> None:
        def other_thing(_: int) -> Generator[int, None, None]:
            yield 1

        parent = self._create_parent(other_thing)

        # Now run the chain and check the resulting posts
        assert method(parent, [self.tracer]) == 3

        self._check_posts()

Domain

Subdomains

Frequently Asked Questions

What does test_sync() do?
test_sync() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_tracing_interops.py.
Where is test_sync() defined?
test_sync() is defined in libs/core/tests/unit_tests/runnables/test_tracing_interops.py at line 383.
What does test_sync() call?
test_sync() calls 2 function(s): _check_posts, _create_parent.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free