Home / Function/ test_beta_async_method() — langchain Function Reference

test_beta_async_method() — langchain Function Reference

Architecture documentation for the test_beta_async_method() function in test_beta_decorator.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  cddc858e_9f63_1b17_baae_c29804109249["test_beta_async_method()"]
  af0bb3cc_9182_00c9_fc61_39029170b37e["test_beta_decorator.py"]
  cddc858e_9f63_1b17_baae_c29804109249 -->|defined in| af0bb3cc_9182_00c9_fc61_39029170b37e
  7d45bba3_4aee_2b9a_dcca_3a7c5f45ad14["beta_async_method()"]
  cddc858e_9f63_1b17_baae_c29804109249 -->|calls| 7d45bba3_4aee_2b9a_dcca_3a7c5f45ad14
  style cddc858e_9f63_1b17_baae_c29804109249 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/_api/test_beta_decorator.py lines 169–186

async def test_beta_async_method() -> None:
    """Test beta method."""
    with warnings.catch_warnings(record=True) as warning_list:
        warnings.simplefilter("always")
        obj = ClassWithBetaMethods()
        assert await obj.beta_async_method() == "This is a beta async method."
        assert len(warning_list) == 1
        warning = warning_list[0].message
        assert str(warning) == (
            "The method `ClassWithBetaMethods.beta_async_method` is in beta. "
            "It is actively being worked on, so the API may change."
        )

        doc = obj.beta_method.__doc__
        assert isinstance(doc, str)
        assert doc.startswith(".. beta::")

    assert inspect.iscoroutinefunction(obj.beta_async_method)

Subdomains

Frequently Asked Questions

What does test_beta_async_method() do?
test_beta_async_method() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/_api/test_beta_decorator.py.
Where is test_beta_async_method() defined?
test_beta_async_method() is defined in libs/core/tests/unit_tests/_api/test_beta_decorator.py at line 169.
What does test_beta_async_method() call?
test_beta_async_method() calls 1 function(s): beta_async_method.

Analyze Your Own Codebase

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

Try Supermodel Free