Home / Function/ test_beta_method() — langchain Function Reference

test_beta_method() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  73cae467_767e_f49a_6afc_87512e710e0e["test_beta_method()"]
  af0bb3cc_9182_00c9_fc61_39029170b37e["test_beta_decorator.py"]
  73cae467_767e_f49a_6afc_87512e710e0e -->|defined in| af0bb3cc_9182_00c9_fc61_39029170b37e
  33df2ed1_85c9_dac9_5d92_a75fb085e76c["beta_method()"]
  73cae467_767e_f49a_6afc_87512e710e0e -->|calls| 33df2ed1_85c9_dac9_5d92_a75fb085e76c
  style 73cae467_767e_f49a_6afc_87512e710e0e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/_api/test_beta_decorator.py lines 148–166

def test_beta_method() -> None:
    """Test beta method."""
    with warnings.catch_warnings(record=True) as warning_list:
        warnings.simplefilter("always")
        obj = ClassWithBetaMethods()
        assert obj.beta_method() == "This is a beta method."
        assert len(warning_list) == 1
        warning = warning_list[0].message
        assert str(warning) == (
            "The method `ClassWithBetaMethods.beta_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 not inspect.iscoroutinefunction(obj.beta_method)

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free