_get_mock_client() — langchain Function Reference
Architecture documentation for the _get_mock_client() function in test_base_tracer.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 33590781_6996_0c05_af8f_aec11ee0bb29["_get_mock_client()"] 013f89c1_4436_b008_1552_7a3ea97dace9["test_base_tracer.py"] 33590781_6996_0c05_af8f_aec11ee0bb29 -->|defined in| 013f89c1_4436_b008_1552_7a3ea97dace9 a7cf89ff_6488_bb28_4b39_4b673b0ed3a7["test_traceable_to_tracing()"] a7cf89ff_6488_bb28_4b39_4b673b0ed3a7 -->|calls| 33590781_6996_0c05_af8f_aec11ee0bb29 style 33590781_6996_0c05_af8f_aec11ee0bb29 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/tracers/test_base_tracer.py lines 619–621
def _get_mock_client() -> Client:
mock_session = MagicMock()
return Client(session=mock_session, api_key="test")
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _get_mock_client() do?
_get_mock_client() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/tracers/test_base_tracer.py.
Where is _get_mock_client() defined?
_get_mock_client() is defined in libs/core/tests/unit_tests/tracers/test_base_tracer.py at line 619.
What calls _get_mock_client()?
_get_mock_client() is called by 1 function(s): test_traceable_to_tracing.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free